Eine Form, vierzehn Zustände
UI-Motion: vom Button bis zur Befehlspalette, ohne Schnitt
- Takt 1 Klick auf „Get started“, Ladekreis, kobaltblauer Haken mit zwei Ringen
- Takt 2–3 Dynamic Island, Player mit Play/Pause-Morph, Kamera fährt beim Scrubben ran
- Takt 4 Lautstärkeregler mit Gummiband-Effekt, Nahaufnahme am gedehnten Ende
- Takt 5 Schalter springt auf dem Schlag um, flüssiger Tab-Indikator im Close-up
- Takt 6–7 Diagramm mit Zähler und Tooltip, Reißschwenk in die ⌘K-Palette, „Saved“, zurück zum Button
- UI-Motion
- 14 s Loop
- 1080² · 30 fps
- HTML
- 1,2 MB
Prompt
Build a 14-second looping UI motion shot, 1080×1080, award-level. One shape, never cut: every state is the same element morphing its size, radius and colour, while its content swaps with a short blur (≤ 6 px, ~120 ms, old text out before new text in). A cursor drives every change with real clicks and drags. The component lives in 3D space on a dark stage, and a directed camera works it like a product film.
CHAIN (120 BPM, 7 bars of 4 beats, something happens on every beat)
button "Get started" → click → loader ring → check (the shape fills with the accent, the check draws, two thin rings leave it) → dynamic island (cover + waveform) → click → music player (cover, title, play/pause icon that morphs) → scrub the progress bar → it becomes a volume slider that stretches like a rubber band when dragged past max → toggle flips on the beat → the knob becomes a liquid tab indicator (Day / Week / Month) → the tabs open into a line chart that draws itself, number ticks up, tooltip follows the cursor → whip pan into a ⌘K command palette → type "save" to filter → enter → toast "Saved" → back to the button. The last frame equals the first, cursor position and speed included.
STAGE
Deep steel #0E1117 with a grey radial light (no coloured glow), a faint dot grid with camera parallax, a soft vignette. Behind the component one huge outlined word per state (Geist 700, 1.5 px stroke, ~19 % white, cropped by the frame: START, WAIT, DONE, LIVE, PLAY, LOUD, ON, WEEK, +8.2%, ⌘K, SAVED); its letters roll up out of a mask with a stagger exactly when the state changes and stretch vertically while they move fast. A small Geist Mono HUD: title and timecode on top, state counter + name, camera zoom readout and a 28-tick beat ruler (current beat flashes the accent) at the bottom.
DESIGN
Surfaces graphite #1E242F and white cards, text white / #0E1117, secondary #6B7280. Exactly one vivid accent, electric kobalt #3D63F5, for everything active: the CTA, the check, progress, slider fill, toggle on, chart line and its fading area, the selected palette row, the caret, the toast badge. One typeface for the UI: Geist (500–600 UI, 400 secondary); Geist Mono for the HUD. All icon strokes 1.75 px with round caps. Depth: a CSS perspective tilt (≤ 7°) toward the cursor plus a slow drift; three layered shadows (contact, mid, ambient) that shift with the tilt and tighten on press; a top highlight, a 1 px rim light and a specular streak that slides with the tilt. Cursor: white arrow with a dark edge and a drop shadow, a subtle press on clicks. No backdrop-filter on anything the camera scales (it rasterises at 1× and the text goes soft).
CAMERA
Phase framing (scale + translate) so each state fills the frame, plus decisive push-ins on the money moments: the scrub playhead, the rubber-band end of the slider, the liquid tab indicator, the chart tooltip (close-up that follows the hover). Snap-zoom kicks on clicks, the check, the toggle flip and the toast, and a small one on every downbeat. A whip pan with a slight roll into the command palette, with a horizontal blur proportional to the camera speed (SVG feGaussianBlur, only during the whip). On the fastest cursor moves a short trail of faint, slightly blurred ghost cursors fakes the shutter.
MOTION
Springs are closed-form step responses (damping 0.8–1, tiny overshoot at most). A value whose target changes many times is the SUM of one spring per change, each starting at its change time — so it stays a pure function of time. The tab indicator's and toggle knob's leading edge rides a faster spring than the trailing edge, so it stretches ahead. Drags are direct manipulation: while held, the value comes from the cursor; on release it springs back from where it was. Colour swaps of the large surface flip within two frames on the beat. Camera kicks use the wrapped time (t − tk mod duration) so the loop stays seamless. Never put will-change on anything the camera scales.
TECHNIQUE
- One self-contained HTML page plus one JS file (no inline script, no libraries, no network requests). Stage exactly 1080×1080 CSS px, or the size named above (1080×1920 for portrait).
- Expose window.MOTION = { duration, fps: 30, width, height, seek(t) } with the stage size in width and height. seek(t) redraws the frame for time t from scratch: no state between frames, no Math.random (seeded PRNG only), no Date, no CSS transitions, no timers.
- Loop: seek(0) and seek(duration) must look identical.
- With ?render=1 the stage sits unscaled at the top left (for frame capture). Without it, scale the stage to fit the window and loop with requestAnimationFrame.
- prefers-reduced-motion: show one representative still, no loop.
CHECK
Render stills at the listed times, look at every one, fix anything that overlaps, is cut off, aliased or unreadable, then render again. Report only when frame 0 equals the last frame.
Stills: every 1.0 s from 0 to 14, plus 11.45 (whip) and 10.9 (tooltip close-up). So bauen Sie es nach
-
Prompt in einen Coding-Agenten geben
Einen leeren Ordner anlegen, den Prompt in Claude Code, Codex oder Cursor einfügen. Der Agent schreibt eine HTML-Seite und ein Script — die Animation läuft danach direkt im Browser.
-
Standbilder prüfen lassen
Der Prompt verlangt, dass der Agent Standbilder rendert und selbst ansieht. Schärfen Sie nur nach, was Ihnen am Bild nicht gefällt: „Szene 3 ist zu voll“ wirkt besser als ein neuer Prompt.
-
Zu MP4 rendern
Weil jede Animation über
window.MOTION.seek(t)jedes Bild exakt zeichnen kann, rendert ein kleines Script sie Bild für Bild — ohne Ruckler, ohne Bildschirmaufnahme. Danach setzt ffmpeg die Bilder zum Clip zusammen.
# 1 · Render every frame (Chrome, Node ≥ 22) node render.mjs http://localhost:3000/ \ frames/ frames 30 # 2 · Join the frames into an MP4 ffmpeg -framerate 30 -i frames/%05d.png \ -c:v libx264 -preset slow -crf 22 \ -pix_fmt yuv420p -movflags +faststart \ my-motion.mp4
Hintergrund
Ein Button wird zum Ladekreis, zur Dynamic Island, zum Player, Regler, Schalter, zu Tabs, Diagramm und Befehlspalette: eine einzige Form im 3D-Raum auf dunklem Stahl, mit Kamerafahrten, Reißschwenk und riesiger Hintergrundschrift. 14 Sekunden, mit Prompt.
Was ich dabei gelernt habe
Die „flüssigen“ Indikatoren sind ein einfacher Trick: Vorder- und Hinterkante laufen auf unterschiedlich schnellen Federn. Und Schwarz-Weiß-Wechsel müssen hart auf dem Schlag passieren.
Inspiration
Ausgangspunkt war ein Prompt von @twoclipping ((öffnet in neuem Tab)) auf Skillry. Den Wortlaut finden Sie dort; der Prompt oben ist meine eigene Fassung.
Weitere Motions
-
Eine Agenten-Plattform, vorgestellt UI-Motion 0:15 -
Agenten, die das Modell wählen UI-Motion 0:14 -
Ein Satz wird App UI-Motion 0:15 -
Ein Betriebssystem, vorgestellt UI-Motion 0:47.2 -
Ihr neuer Design-Partner Mit Sprecher 0:54.3 -
Zehn Kilometer, schwebend UGC-Ad 0:12.6 -
Der Weg einer Bestellung Erklärclip 0:34 -
Mach es lebendig Kinetic Typography 0:08 -
Aus Rauschen wird ein Ablauf Partikel 0:14 -
Der Gimli Glider Mit Sprecher 0:19 -
Oszilloskop-Intro Oszilloskop 0:20 -
Ein Tastendruck im Querschnitt Erklärclip 0:20 -
Ein Ring namens Orbit UI-Motion 0:10 -
Der Bug, der bleiben will Kurzfilm 0:20 -
Schienbein, nicht Fuß Mit Sprecher 0:17 -
Quallen im Lichtschacht Organischer Loop 0:18 -
Ein Logo, das lebt Logo-Reveal 0:08 -
Wie aus Kreisen jede Form wird Erklärclip 0:20 -
Pixel-Zauberer Pixel-Art 0:16 -
Der kürzeste Krieg Mit Sprecher 0:16 -
Lose Mosaikwand Mosaik 0:20 -
Fast gefallen Physik-Simulation 0:09 -
Negroni als Erklärclip Erklärclip 0:20 -
Wohin das Tankgeld geht Mit Sprecher 0:19.5 -
Ein Abdruck, sonst nichts Vorspann 0:20 -
Endloszoom ins Detail Endloszoom 0:15 -
Würfelturm Kurzfilm 0:07 -
Anfrage um 22:47 Chat-Story 0:17 -
Claude Code in drei Schritten Mit Sprecher 0:17.5 -
Die Posteingangs-Fabrik Isometrischer Loop 0:12 -
Von 0 auf 100 % weich Physik-Simulation 0:10 -
Eine Linie, drei Tinten Showreel 0:20 -
Die Anfrage bricht aus Physik-Simulation 0:15 -
Die Schneidemaschine Isometrischer Loop 0:09 -
Wie Backlinks wirken Erklärclip 0:20 -
Ein Ball, der mit jedem Aufprall wächst Physik-Simulation 0:10 -
Was ein Zuhause ausmacht Scherenschnitt 0:20 -
Wörter, die tragen Kinetic Typography 0:20 -
Logo-Reveal aus Splittern Logo-Reveal 0:11