Premium
A flywheel turns at a steady rate while its rod drives a piston in a cutaway cylinder. The rod angle and stroke are true slider crank values sampled 32 times a turn, so no joint ever drifts.
Also known as: piston animation css, engine crank animation, slider crank mechanism, flywheel and piston loop.
Premium
Everything you see above is live. Basic and Pro include every premium piece, with the HTML and CSS ready to copy, plus the Tailwind version where there is one and Motions in Claude Code on Pro.
--kfa-color on the element or a parent.
Currently previewing #3b82f6.--kfa-size. Every other dimension is in
em, so the whole thing scales together. Currently previewing 16px.transition or animation
shorthand. Staggered delays are relative, so they keep their rhythm.