Implement an animation controller