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

Stuff & Nonsense product and website design

How I built an animated SVG gold mine scene with CSS

I redesigned my contact page animation as a gold mine scene. Here’s how I approached the artwork, structured the SVG, and added subtle ambient animation using CSS.

Of all the “pioneering” graphic animations I’ve made this year, the one I disliked the most was on my contact page. That was one of the first ones I’d produced, and it was before I’d really got into the process. Anyway, it’s gone, replaced with a new gold mine graphic.

This time, I set my Magnificent 7 pioneers in the entrance to a gold mine. There’s dust in the air, gold shimmering, and oil lamps glowing and swinging.

New gold mine graphic with characters
New gold mine graphic with characters

Sketching the scene

I started with a loose pencil sketch.

Pencil sketch of my gold mine
Pencil sketch of my gold mine

Preparing SVG elements for animation

I moved the artwork into Sketch to make my vectors. When designing SVG for animation, I separate anything that might move into its own element, so I can control it independently later:

Layering animation effects

CSS animations make the buckets sway, and lamps swing, then a little vanilla JS spawns and animates the dust particles and gold shimmers. Here’s the gold mine graphic on its own, so you can see all the components.

New gold mine graphic without characters
New gold mine graphic without characters

As I said before, I’ve been having way too much fun with my website since I implemented the new pioneer characters, so I doubt this will be the last time I add new features. In fact, I guarantee it won’t be.


December 31, 2025 • Andy Clarke • csscustom

You might also like

Shop

Eleventy in a Box

A premium Eleventy starter kit for designers and developers who want to spend less time setting up the same project structure and more time designing distinctive websites.

Shop

Layout ❤︎

Free compound grid and modular grid layout generators, plus a set of HTML/CSS layout templates you can call on to make more interesting layouts, available to buy.