Cornerstone OnDemand interview question

(On-site) How would you create an animation using just JavaScript?