Isolating the css animations for use elsewhere.