Menu

1 / 20

Smashing Animations Part 8: Theming Animations Using CSS Relative Colour — Smashing Magazine

Smashing Magazine·Andy Clarke·7 months ago
#0OPfOA
#overlay#animation#css#design#mine
Reading 0:00
15s threshold

13 min read

Animation , CSS , Design

CSS relative colour values are now widely supported. In this article, pioneering author and web designer Andy Clarke shares practical techniques for using them to theme and animate SVG graphics.

I’ve recently refreshed the animated graphics on my website with a new theme and a group of pioneering characters, putting into practice plenty of the techniques I shared in this series . A few of my animations change appearance when someone interacts with them or at different times of day.

View this animated SVG on my website . ( Large preview )

The colours in the graphic atop my blog pages change from morning until night every day. Then, there’s the snow mode , which adds chilly colours and a wintery theme, courtesy of an overlay layer and a blending mode.

Snow mode allows my pioneer town background to adapt throughout the day.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.