Skip to content

Find an effect

Start from what you want to build (a button that squashes, a list entrance, a loading indicator) and find the class or function for it.

Edit this page

Look up what you’re trying to do, then use the CSS class or Canvas function next to it. Each task links to the page with a live demo and tuning tips, and to a ready-made recipe where there is one.

I want to… CSS Canvas
Make a button feel physical
Anticipation, with an everyday example
.toon-press —
Give a card or button a wind-up on hover
Anticipation
.toon-anticipate —
Animate a list in, item by item (staggered entrance)
Follow-through, with an everyday example
.toon-follow on the list stagger(items, fn, { each })
Bring in one element: modal, toast, card
Appeal
.toon-pop-in or .toon-settle tween with ease.outBack
Highlight one item and dim the rest
Staging
.toon-stage with .is-featured, or .toon-spotlight stage.spotlight(x, y, r)
Show that something is waiting or alive (loading, idle)
Appeal and Secondary action
.toon-bob, .toon-breathe, .toon-bounce breathe(t), wave(t)
Send something flying to a target (“add to cart”)
Arcs, with a throwing recipe
.toon-arc, .toon-launch arc(from, to) with tween
Make transitions smoother
Slow in & slow out
--toon-ease-out, --toon-ease-in-out in your own transition ease.*, ease.cubicBezier()
Tone motion down for a business app, or up for a game
Exaggeration
.toon-subtle, .toon-exaggerate, --toon-exaggeration exaggerate(value, factor)
Make things feel heavier or lighter
Timing
.toon-heavy, .toon-light gravity, bounce and squash parameters
Respect reduced motion Automatic in toon.css ticker.timeScale = 0
I want to… CSS Canvas
Bounce a ball or mascot with squash and stretch
Squash & stretch
.toon-bounce and .toon-bounce-shadow squash, impact, withSquash
Script a jump: crouch, leap, land Only the crouch: .toon-anticipate sequence of tweens
Blink, glance, sway (small signs of life)
Secondary action
.toon-blink, .toon-sway blink(t), noise(t)
Follow the cursor or a target with springy lag
Follow-through
— Spring
Draw a tail, rope, hair or cable that trails behind
Follow-through
— Chain
Play a sequence of key poses
Pose to pose
— poses(keys), samplePoses
Simulate smoke, particles or other procedural motion
Straight ahead
— straightAhead(step, { fps }) with noise
Play a sprite sheet (flipbook)
Straight ahead
.toon-sprite —
Make a flat circle look 3-D, with a contact shadow
Solid drawing
.toon-solid and .toon-shadow drawSolid, groundShadow
Hand-drawn “on twos” look
Timing
— quantize(t, 12), ease.steps(n)
Slow everything down to debug timing
Timing
--toon-tempo: 4 (higher is slower) ticker.timeScale = 0.25 (higher is faster)

toon is about character motion. For these, reach for another tool or a few lines of your own CSS:

  • Loading spinners and skeleton screens: a plain rotate or shimmer keyframe. Use .toon-bob or .toon-breathe if you want an idle indicator with personality.
  • Scroll-driven timelines: CSS animation-timeline: view(), or a scroll library.
  • SVG path morphing and page transitions: the View Transitions API, or a dedicated animation library.