add animate when move the element