Project: CSS Animation Playground
Build real CSS animations in your browser — a pulsing call-to-action button and an infinitely spinning loader — and watch them move live as you write @keyframes, transition and transform.
Make things move — for real
Animation is what separates a flat page from one that feels alive. Here you’ll write the exact CSS that production sites use — @keyframes, animation, transition and transform — and it runs live in the preview as you type. No “trust me, it works”: the grader reads the computed animation off the rendered element, so a task only passes when the animation is genuinely applied.
Your tasks
- ○Add a button with class 'cta'
- ○Give .cta a transition (non-zero duration)
- ○Apply a @keyframes animation to .cta
- ○Add a <div class='spinner'></div>
- ○Animate .spinner with a @keyframes rule
- ○Make the spinner loop infinitely
What you just proved
Those are the same three tools every animated interface is built from:
transition— animate between two states (e.g. normal → hover). Cheap and smooth.@keyframes+animation— define your own multi-step movement and play it (once, orinfinite).transform— move, scale and rotate without triggering expensive layout, so animations stay at 60 fps.
Hit Export to download your playground as an .html file and keep tinkering in VS Code — try an ease-in-out timing function, a scale() + rotate() combo, or a bounce. Everything you can do here works identically on a live website.