Website: Animated header and responsive web

CSS animations in a grid created by Javascript.
Why not set the animation directly on the element instead of inserting it and then reading it back out again based on identifiers?