Payment loading/success state with a fake 3d coin
A payment loading and success state, shown in the video. The coin looks 3D, but there's no 3D anywhere: two ellipses, a swept edge band, and a recessed well, with the projection baked into plain Lottie keyframes.
Screen Recording 2026-10-05 at 3.52.05 PM.mov
The state machine was the interesting bit. The coin is always moving, so there's no single frame to cut to success from. The loop is split into four segments that all converge on one shared launch; a Boolean input, success, makes the machine leave at the next exit. One timeline, nine marker segments, one .lottie.
Three things the dotLottie player taught me: it applies one easing per keyframe to every dimension, so per-dimension handles render wrong there; oversized handles draw as a one-frame blob, so cap them; and it can draw a segment's end frame before it transitions, so end markers on the segment's last frame.