【发布时间】:2012-04-23 20:20:24
【问题描述】:
我在让返回动画在悬停状态下播放时遇到了一点问题。
$("#porttab").hover(function(){
$(this).stop().animate({"top" : "40px"}, {
duration: 'slow',
easing: 'easeOutElastic'
}, function(){
$(this).stop().animate({"top": "-40px"}, {
duration: 'slow',
easing: 'easeOutElastic'
});
});
});
我不知道我在这里做错了什么,但我有点 jquery 菜鸟所以请温柔。
而且我正在使用缓动插件,如果这有影响的话。
【问题讨论】:
标签: jquery animation hover jquery-easing