Generalizing the animation system