My site’s moved CMS and servers. If you spot a problem, let me know.

Stuff & Nonsense product and website design

More Magnificent 7 Malarkey

I had some spare time earlier this week to add a little more finesse to my Magnificent 7 animated graphics, so I added a new background to my blog pages’ illustrations, which has some hidden features.

Most of the visitors to my website come for the blog, so I decided to spice up the animated graphic by adding a full-colour Old West town background.

Adaptive SVG at three breakpoints. (Full size)

Twenty years ago, Dunstan Orchard was famous in web circles for adapting his blog illustrations to the current weather. I wanted to adjust my background to the time of day by changing its brightness and saturation.

Daytime background. (Full size)
Twilight background. (Full size)
Nighttime background. (Full size)

So I created a dark blue overlay which covers the town’s buildings.

Dark blue overlay.

Leaving gaps for light from the windows to shine through.

Overlay during dayight.
Overlay at twilight.
Overlay at Nighttime.

A simple script checks for the time of day in a visitor’s location, then appends a class attribute value (time-day, time-twilight, and time-night) to the SVG.

Phases of the moon.

Not knowing when to stop, I made ten moon-phase graphics and extended the script to include them, too. Then I added CSS rules that display the correct moon at twilight and during the night.

Lighting up the about page animation

I love including Easter Eggs in my designs, and the graphic animation on my about page seemed like the perfect candidate. So, using the same technique, I created a green overlay that covers the inside of the town jailhouse, turning it dark.

Dark green overlay.

Then I added the elements I want illuminated when the overhead light is turned on.

Illumination.

A simple script toggles class attributes on the SVG (lighting-on, lighting-off). Triggering that toggle? Well, that should remain a mystery.

Lighting off.
Lighting on.

People may never notice the moon shifting or the jailhouse lights flicking on, but you know what? That’s fine. As web designers, we talk a lot about accessibility, performance, and responsiveness, and rightly so. But entertainment matters too, even if the only person entertained is the one making the website.


October 22, 2025 • Andy Clarke • design