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.

Animation Playground
PREVIEW

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:

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.