--- title: "Site Update: Welcome to the Grid!" content_type: journal date_pub: 2024-04-09T22:17:45.000-04:00 description: Some details around the recent addition of a scrolling background grid to the site. tags: cyberpunk code interwebs WebDev --- Recently, I decided to try my hand at some CSS shenanigans, and spent a few hours replacing this site's long-serving background image with a scrolling grid background. I've been obsessed with digital grids ever since I first saw the movie [Tron](https://en.wikipedia.org/wiki/Tron) (presumably during its initial HBO release, when I was around 6). Tron and Flynn were some of my first heroes (they fought for the users), and I remember being blown away not just by the movie, but by being able to play the _same game they play in the movie_ via the incredible Tron arcade cabinet. I distinctly remember going to the Chuck E. Cheese's near our house and playing it, complete with the special blue joystick, and just like the movie, it was _amazing_. And it was all grids. ![[Tron Arcade Machine by Darth-Wiki-Man, used under CC-BY-SA](https://commons.wikimedia.org/wiki/File:Tron_Arcade_Machine.jpg)](/images/updates/tron-arcade-machine.jpg "Tron arcade machine") ![Lightcycle game, screenshot from _Tron_ by Bally Midway](/images/updates/tron-light-cycle.jpg "Lightcycle game from Tron") So that's the "why", as for the "how"... The capabilities of #web rendering engines (AKA #browsers) have improved immensely over the last few years, particularly in the area of CSS effects. A link to a link to a link lead me to a couple of [stack exchange](https://stackoverflow.com/questions/44793453/how-do-i-add-a-top-and-bottom-shadow-while-scrolling-but-only-when-needed) [questions](https://stackoverflow.com/questions/63874053/any-way-to-line-up-the-end-of-tron-legacy-style-grid-half-way-between-top-and-bo) and a [collection of fantastic synthwave-inspired CSS effects](https://speckyboy.com/css-javascript-snippets-synthwave/). The next thing I know, I've replaced the site's static background image with a scrolling one. Except... I know that not everyone _likes_ moving background effects, so the only responsible way to add an effect like that is with a toggle that allows the site visitor to turn it on and off at will. And the only responsible way to add an interactive toggle like that is via [progressive enhancement](https://developer.mozilla.org/en-US/docs/Glossary/Progressive_Enhancement): visitors without JS enabled (or those whose browsers don't support [`