One Shape, 14 UI States — Spring Motion Loop
A single black pill morphs through 14 UI states — button, loader, check, Dynamic Island, music player, scrub bar, volume slider, toggle, liquid tab indicator, self-drawing chart, ⌘K palette, toast — and loops back to the start without a single cut. Every transition is a spring, every cursor click is real direct manipulation, and the whole thing is one HTML file rendered with Playwright at 60fps with 4x motion blur. Zero After Effects. @twoclipping open-sourced the full prompt template.
- One HTML file, 1440×1440: all animation is pure math — closed-form spring step responses, no CSS transitions or timers
- Beat-synced to 120 BPM with numpy-analyzed audio; every UI state lands on a downbeat with measured sound peaks
- Rendered via Playwright with 4 subframes per frame blended by ffmpeg tmix for cinematic motion blur at 60fps
“opus 5.5 is f*cking cracked at motion design this entire video is code, 0 after effects im open sourcing the prompt template for these motion designs steal it to recreate these ↓ <inputs> Ask me for: 8 to 12 UI states I want the shape to become (e.g. button, loader, player, slider, toggle, tabs, chart, command palette, toast), pure black and white or one accent color, and a royalty-free song around 120 BPM (e.g. Mixkit, free for commercial use). </inputs> <direction> Dribbble-level UI motion. One shape, never cut: every state is the same element morphing its size, radius and color while its content swaps with a short blur. A cursor drives every change with real clicks and drags. Light warm-gray canvas, black and white components, one clean UI font (Geist). Springs everywhere, a tiny overshoot at most. The camera zooms so each state fills the frame. The last frame is the first frame, so it loops. Banned: bouncy easing, particle bursts, glows, gradients on UI chrome, mismatched icon strokes, dead time, anything that looks like a template. </direction> <structure> 120 BPM, 7 bars, something happens on every beat. Button → loader → check → dynamic island → music player with a play/pause morph → scrub the progress bar → it becomes a volume slider that stretches when dragged past max → a toggle flips on the beat → the knob becomes a liquid tab indicator → the tabs open into a chart that draws itself, with a tooltip on hover → it collapses into ⌘K → type to filter → enter → toast → back to the button. </structure> <build> 1. One HTML file, square 1440x1440. Every style is computed from time inside seek(t): no CSS transitions, no timers, no state carried between frames. 2. Springs are closed-form step responses. A value that changes target many times is the sum of one spring per change, so it stays a pure function of time. 3. The tab indicator's two edges ride different springs, so the leading edge stretches ahead of the trailing one. Same trick for the toggle knob. 4. Drags are direct manipulation: while the cursor is held, the value is computed from its position. On release it springs back from wherever it was. 5. Analyze the song with numpy for the beat grid and start on a downbeat. Place every UI sound by its measured peak. 6. Render with Playwright: 4 subframes per frame, blended with ffmpeg tmix for motion blur at 60fps. 7. Render one frame per beat before the full render. Fix anything off the grid, cramped or hard to read. </build> <gotchas> Never put will-change on anything the camera scales or the text renders blurry. Text that swaps inside a morphing container needs its own enter and exit timing or it overlaps. Make the last frame identical to the first, cursor position and speed included, or the loop stutters. </gotchas> <start> Ask me for the inputs, then show me the state list on the beat grid before you write any code. </start>”
Similar builds
Interactive Camera Lens Lab
@RyanSael
♥ 16K · 3.4M views
Claude's Motion Design Showreel
@stephanlivera
♥ 16.8K · 2.1M views
AI Time Horizon — Animated Data Explainer
@donaldjewkes
♥ 10.2K · 3.5M views
Interactive Raptor 3 Rocket Engine Teardown
@konstantinsaifo
♥ 8K · 1.1M views
Pixel Art Neural Network Training Animation
@DotCSV
♥ 9.4K · 571.9K views
What Do You Love? — Hand-Drawn JS Animation
@kevin_t_ngo
♥ 6.1K · 638.8K views
Inkwave — Splatoon-Style Ink Battle Game
@JaydenDavisNC
♥ 5.3K · 779.6K views
Playable Boat Through Japanese Landscapes
@MengTo
♥ 6.5K · 469.4K views