Replacing basic animation with Keyframe animation