Website: Animated header and responsive web

CSS animations in a grid created by Javascript.
You can still randomly apply an animation to selected blocks in the first loop. Regardless of that, you should also store the block element in the array instead of the identifier. By keeping a reference to the element you don't need to query the DOM for each block.