Pick your sweets

Spec

Read from the CSS this page runs on. With reduced motion on, every pop and roll is skipped; only the end states remain.

Checkbox

Box
Corner
Outline, empty
Check2.5px white, round ends
OnPink to lilac fill
Burst linesEight, every 45°, 8px and 5px long alternately, 2.5px, in pink, sky, lemon, mint and violet; they start 19px from the centre
On is told byThe fill and the check

Row and type

FontFredoka
Title
Label
Row height, minimum
Row padding, sides
Control to text
Row corner
Card width, at most
Card corner
Card padding
TargetThe whole row; it blushes pink on hover

Colour

Sugar, the page
Pink
Peach
Lilac
Sky
Lemon
Labels
Outlines when off

Motion

JellyEach control a soft gummy: light top edge, darker underside, a 3px lip below
PressedSquashes to in , from its bottom edge
Let go, or changedWobbles back like jelly over : 1.16 × 0.82 → 0.9 × 1.12 → settles
Pop, in one go
  Swell0–34%: grows to , slowly speeding up, blushing pink
  Pop34–38%: squashes flat (1.18 × 0.74); fill and lines appear
  Settle38–100%: wobbles tall, wide, tall, and still, like jelly
Burst linesFrom 40%: fly 12px out and fade
Check drawn.25s ease-out, from 42%
Off, the air goes out: the box sputters hard side to side (−18°, 15°, −11°, 7°…), the fill twists and shrinks away as if leaking, and the check, turning pink and thicker, is flicked 26px up and tumbles off