new mechanism for playing animation.