Falling Grid Effect (CSS)

This page is inspired by elite784's homepage, which features a similar 'wireframe grid' effect in the background. On elite784's page, the effect is powered by an modified version of a JavaScript library by Kallistero.

That library uses around 3,000 lines of JavaScript code. I wanted to see if I could recreate a similar effect using only vanilla HTML and CSS, which enjoys wider support, (generally) faster performance, and is less-fragile.

This is the result of that work. It uses 6 lines of HTML plus around 100 lines of CSS. The effect isn't identical, but it's pretty close.

Please View Source or use your browser's debug tools to see how it works. Everything's self-contained in this one HTML file so it's easy to evaluate. If it's useful for you... great: it's all yours! You can consider it to be Public Domain code. If you want to give me credit, that's fine, but totally unnecessary.

Happy hacking, fellow Webnaut.


— Dan Q