html引入
<link rel="stylesheet" type="text/css" href="jquery.funnyText.css" /> <script src="jquery.min.js"></script> <script type="text/javascript" src="jquery.funnyText.js"></script>
html
<div class="mySelector">funnText is applied here</div>
javascript 调用
$(document).ready(function() { $('.mySelector').funnyText(); });
更多效果,默认效果的参数如下
javascript
$(document).ready(function() { $('.mySelector').funnyText({ speed: 700, borderColor: 'black', activeColor: 'white', color: 'black', fontSize: '7em', direction: 'both' }); });