Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有.animate的jQuery自定义轻松插件_Jquery_Jquery Animate_Easing_Jquery Easing - Fatal编程技术网

带有.animate的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

我正在使用jQuery插件来定制宽松(jQuery宽松1.3版)-http://gsgd.co.uk/sandbox/jquery/easing/)要向我的jQuery工具中添加自定义的可滚动实例,请执行以下操作:

$(“.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");