Add animation when dragging.