Encapsulated animation functions in an Animation object