Add some animation functions.