天天看点

jQuery文本动画效果

这里跟大家分享一款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,如需转载请自行联系原作者

继续阅读