标签:
jQuery 动画
jQuery----easing.js插件
用法介绍
1 2 <script> 3 $(function(){ 4 $.easing.def="easeInQuad";//设置默认效果 5 var callback=function (){ 6 alert("ok"); 7 } 8 $("#t1").animate({ 9 "top":600 10 },{duration: 3000, 11 easing:"easeInQuad",//可省略 12 complete: callback}) 13 }) 14 </script>
具体参数细节:
duration 选项:
毫秒数
complete 选项:
完成后调用
easing 选项:
jswing
def
easeInQuad
easeOutQuad
easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
easeInOutQuart
easeInQuint
easeOutQuint
easeInOutQuint
easeInSine
easeOutSine
easeInOutSine
easeInExpo
easeOutExpo
easeInOutExpo
easeInCirc
easeOutCirc
easeInOutCirc
easeInElastic
easeOutElastic
easeInOutElastic
easeInBack
easeOutBack
easeInOutBack
easeInBounce
easeOutBounce
easeInOutBounce
标签:
原文地址:http://www.cnblogs.com/liujianhui/p/4718398.html