motion that earns its place
engineering · · 2 min read
this site moves a fair amount: cards that fan out and close, a checklist step that pings, routes drawn like shooting stars, a chat that types itself. none of it uses an animation library. it is css keyframes, a little svg, and in one place a small react component.
that is a choice about weight as much as taste. every line of motion has to be worth what it costs to load, to maintain, and to sit next to someone trying to read.
one idea per picture
each animated tile shows one thing about the project it belongs to. the cards close and open because the guide is a set of choices. the step pings because that is where you are in the checklist. the routes stream because a pathway is something you follow.
if i can't say what the motion explains, it is decoration, and decoration can be still.
springs from keyframes
the bouncy, slightly lottie feel comes from giving each keyframe its own easing, so an element overshoots and settles instead of gliding. a streaking light is a short dash of stroke sliding along a path, with a few longer, fainter dashes behind it for the tail.
it is cheap, it scales to any screen, and it never needs a file download.
only when someone is looking
the one animation that needs code, the chat, runs only while it is on screen and stops when you scroll away. the css ones are free to leave running because the browser pauses what you can't see.
and never when someone asks for less
all of it sits behind the reduced motion setting. people who ask their device for less movement get still pictures: the chat shows its finished frame, the pings and streaks simply don't appear.
the site's name animation has a pause button too. anything that moves by itself should be something you can stop.