生成吸引用户注意的脉搏效果:jQuery.pulsate.js

jopen 10年前

jQuery.pulsate.js用于为元素增加了脉动效果, 绘制吸引用户关注的动画。
生成吸引用户注意的脉搏效果:jQuery.pulsate.js

简单示例:    $(element).pulsate();    自定义选项    $(element).pulsate({    color: $(this).css("background-color"), // set the color of the pulse    reach: 20,                              // how far the pulse goes in px    speed: 1000,                            // how long one pulse takes in ms    pause: 0,                               // how long the pause between pulses is in ms    glow: true,                             // if the glow should be shown too    repeat: true,                           // will repeat forever if true, if given a number will repeat for that many times    onHover: false                          // if true only pulsate if user hovers over the element  });

项目主页:http://www.open-open.com/lib/view/home/1390721211789