Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好吧,我一直在尝试制作一个 gui 组件,当您将鼠标移动到页面底部http://jsfiddle.net/62u3A/4/时它会向上滑动,但它不能很好地工作,是否有人有一个好的想法如何使它更好地工作?
至于我,你选择了错误的事件来处理。我尝试了 mouseenter/mouseleave - 看起来效果很好。停止动画也是个好主意
在 .slideup() 之前添加 .stop()
jQuery 停止
jsfiddle