Planning pure CSS timelines with custom properties
Chaining CSS animations and transitions into a multi-step sequence runs into a timing problem early on. Each step's delay has to account for everything that came before it: step two waits out the full duration of step one, and step three waits for the durations of the first two steps combined, including any delay between them. The bookkeeping only grows more tangled from there, which is often the point where developers reach for extra tooling instead.
Paul Hebert describes a different approach:
Lately I’ve been using custom properties to plan out pure CSS timelines for complex animations.
Hebert has published a CodePen demo of the technique, and the result is elaborate — well beyond a simple two-step sequence.



