带有.animate的jQuery自定义轻松插件
我正在使用jQuery插件来定制宽松(jQuery宽松1.3版)-http://gsgd.co.uk/sandbox/jquery/easing/)要向我的jQuery工具中添加自定义的可滚动实例,请执行以下操作:带有.animate的jQuery自定义轻松插件,jquery,jquery-animate,easing,jquery-easing,Jquery,Jquery Animate,Easing,Jquery Easing,我正在使用jQuery插件来定制宽松(jQuery宽松1.3版)-http://gsgd.co.uk/sandbox/jquery/easing/)要向我的jQuery工具中添加自定义的可滚动实例,请执行以下操作: $(“.historycrollable”).scrollable({easeInOutCubic}).navigator() 我还希望使用jQuery插件与.animate函数一起使用 我试过这样使用它: $(this.find('div').stop().animate({'ma
$(“.historycrollable”).scrollable({easeInOutCubic}).navigator()代码>
我还希望使用jQuery插件与.animate函数一起使用
我试过这样使用它:
$(this.find('div').stop().animate({'marginLeft':'-280px'},200,easeInOutCubic)代码>
但它说“easeInOutCubic”并没有定义。我正在做的是可能的,而我只是把语法搞错了?我也尝试过使用SpecialLeasing,但似乎也不起作用:
$(this.find('div').stop().animate({'marginLeft':'-280px'},{duration:200,自定义:{'marginLeft':'easeInOutCubic'})代码>
使用引号
使用引号
.animate({'marginLeft':'-280px'},200,"easeInOutCubic");