Website: Animated header and responsive web

CSS animations in a grid created by Javascript.
I want to keep the animation random with different delays. If I set the animation directly, the animation will be the same every time or there will be id's with the same delay (and so light up at the same time).