javascript for @keyframe onclick