這裡跟大家分享一款jQuery的插件,即使用jQuery将文本有一定的動畫效果。
<a href="http://blog.51cto.com/attachment/201105/2621421_1306397287.rar" target="_blank">jquery.texteffects.js</a>
使用方法也很簡單:
引入上述的js檔案,然後給你的文本加上一個class,寫如下jquery代碼
<a href="http://blog.51cto.com/attachment/201105/160838559.jpg" target="_blank"></a>
這裡是插件的些參數的設定方法:
texteffect
The name of the effect to apply. "expand", "collapse", "drop", "undrop", "explode", "unexplode".
speed
Specifies the speed of the animation. "slow", "fast".
delay
Specifies a pause before the animation starts, in milliseconds (1000 is one second).
opacity
Set this to a value less than "1" to make the footer semi-transparent, for example "0.8".
大家可以點下面的連結下載下傳執行個體代碼。
<a target="_blank" href="http://blog.51cto.com/attachment/201105/2621421_1306397476.rar"></a>
<a href="http://down.51cto.com/data/2358232" target="_blank">附件:http://down.51cto.com/data/2358232</a>
本文轉自xshf12345 51CTO部落格,原文連結:http://blog.51cto.com/alexis/574766,如需轉載請自行聯系原作者