add generateKeyframe() allows us to generate keyframe functionally.
separate code is create CSS declarations of keyframe.
add scrappy jsdoc.