简体   繁体   English

拖动时动画div

[英]animate div when dragging

I'm trying to animate a div when I'm dragging another div. 当我拖动另一个div时,我正在尝试为div设置动画。

I have an image inside a div and when I drag this image I'd like to animate/move some other div with another speed. 我在div内有一个图像,当我拖动该图像时,我想以其他速度设置动画/移动其他div。

So the main question is how can I animate divs while I'm dragging other elements? 因此,主要问题是在拖动其他元素时如何为div设置动画?

Can anyone help me with this? 谁能帮我这个?

Regards 问候

jQuery UI does this very nicely: jQuery UI可以很好地做到这一点:

http://jqueryui.com/draggable/#visual-feedback http://jqueryui.com/draggable/#visual-feedback

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM