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.
The view options toolbar at the bottom of my animated banners has irked me for a while. It had grown one button at a time, and the result looked ill-considered rather than designed. With a few minutes to spare at the end of last week, I finally redesigned it.

When I first made my current SVG animated banners, I wanted to let people switch off the animations, so I added a play/pause button. Over the past few months, I added a winter theme, then a spring theme, and a character-collecting card game. What started out as play/pause became a toolbar.

Those animation and theme toggles weren’t clear enough, and there was little affordance showing which options were on or off. So I added new icons to represent the different states.

With a contrasting background colour, the button states are now much clearer to recognise:
#animation-controls .btn[aria-pressed="true"] {
background-color: oklch(0.6664 0.12 239.96); }I was already using aria-pressed to describe each button’s state, so I used that same attribute as the styling hook:

It’s also now much more obvious whether the spring or winter themes are active.

Now the buttons looked like a more cohesive collection, I wanted to group them into an unintrusive toolbar that wouldn’t obscure the illustrations behind it.
#animation-controls {
background-color: rgba(0,0,0,.25);
backdrop-filter: blur(5px);
scale: .65; }
#animation-controls:hover,
#animation-controls:focus-within {
box-shadow: inset 0 0 10px oklch(0.6664 0.12 239.96);
scale: 1; }
These are subtle changes, but they scratch an itch that’s been there for a while.

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.
Contract Killer is plain and simple and there’s no legal jargon. It’s customisable to suit your business and has been used on countless web projects since 2008.
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.