add animate fn