這里跟大家分享一款jQuery的插件,即使用jQuery將文本有一定的動(dòng)畫效果。
jquery.texteffects.js
使用方法也很簡(jiǎn)單:
引入 上述的js文件,然后給你的文本加上一個(gè)class,寫如下jquery代碼
這里是插件的些參數(shù)的設(shè)置方法:
Option
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".
大家可以點(diǎn)下面的鏈接下載實(shí)例代碼。