Die Anfrage bricht aus
Physik-Simulation: ein Ball, sieben rotierende Ringe, eine Lücke pro Ring
- 0–0,7 s Der Ball prallt im innersten Ring INBOX umher, die Kamera ist nah dran
- 0,7–7,7 s Ring für Ring findet der Ball die Lücke, jeder Ring zerspringt in Splitter, der Zähler rollt hoch
- 7,7–9,7 s Der letzte Ring REPLY lässt sich Zeit, dann bricht auch er
- 9,7–12,4 s Der Ball wird zur Kobalt-Scheibe mit Haken, ANSWERED steigt auf, die Uhr bleibt bei 1:57
- 12,4–15 s Die Ringe bauen sich von innen wieder auf, der Ball startet erneut
- Physik-Simulation
- 15 s Loop
- 1080² · 30 fps
- Canvas 2D
- 1,5 MB
Prompt
Build a 15-second looping "ball escapes the rings" simulation, 1080×1080 — the satisfying physics format, told as a story: a request breaks through every hurdle until it is answered.
WORLD
A white ball (radius 11, the request) bounces inside seven concentric rings around one centre (radii 74 → 398 in steps of 54). Each ring has one gap and a small mono label sitting at the top, outside the ring, that does NOT rotate: INBOX, SPAM CHECK, TRIAGE, CRM, CALENDAR, DRAFT, REPLY. The rings turn slowly, alternating direction, each a whole number of turns per loop (so every ring angle is periodic in t and the loop is seamless). Gap size is similar in arc length on every ring (half-angle ≈ 56 / R, clamped to 0.17–0.36 rad). Only the innermost intact ring is in play.
PHYSICS (real, deterministic, precomputed once)
Fixed step 1/480 s, gravity 1500 px/s², launch velocity (360, −680) from the centre. On contact with the ring wall: reflect the normal component, drag the tangential component 22 % toward the wall's own speed (ω·R, friction with a turning wall — this breaks periodic bounce patterns), then rescale to the incoming speed so no energy is lost. Timing is directed, not hoped for: for each ring, probe with a solid wall, list every contact, and pick the contact closest to a target time (about every 1.4 s, the last ring a little later for tension) whose earlier contacts all hit solid ring; then rotate that ring's phase so its gap sits exactly under that contact. Run again with the gap in place: the ball passes through, the ring breaks.
LOOK
Steel #0E1117 with a soft grey radial light behind the rings, a faint dot grid (40 px), a vignette to #08090C, dark scrims behind the HUD at top and bottom. Rings cream #F2EFE8 at ~55 %, 1.6 px, with rotating tick marks (every 7.5°, longer every 30°, skipped under the label) and short end caps at the gap. The ring in play turns kobalt #7B95EE, 3 px, its label too. Ball white with a 0.3 s tapered kobalt trail. Exactly one accent (kobalt); no coloured glow, no lens flares, no confetti.
BEATS
Every bounce: the ring flashes toward white and thickens for ~0.1 s, a bright arc highlights the contact point, and a thin kobalt ripple expands from it. Every escape: the ring splits into 8 + 2·i arc shards that fly outward with the ring's spin, an upward kick and gravity, tumbling and fading in ~1.2 s (white for the first frames, then kobalt); a thin shock ring runs outward; the label drifts out and fades; the next ring turns kobalt; the camera does a 2 % punch. The camera starts pushed in (1.34×) on the inner rings and widens by critically damped springs as rings fall, ending at 1×.
HUD
Top left: "RINGS CLEARED" (Geist Mono 13 px, tracked) over a huge two-digit counter (Geist 700, 138 px) with "/07"; each change rolls the digits through a mask, 07 turns kobalt. Top right: "REQUEST #2048" and a mono clock (46 px) that maps the run to 1:57. Bottom: an Instrument Serif caption "One request. Seven hurdles." and a mono bounce counter.
ENDING (loop)
After the last ring breaks, a spring pulls the ball to the centre while it grows into a deep-kobalt disc (#18318A) with a kobalt rim, a white check draws on, ANSWERED (Geist 700, 92 px) rises letter by letter out of a mask, "IN 1:57 · 7 OF 7 RINGS · 0 CLICKS" underneath, and the caption swaps to "Answered before anyone looked." At 12.4 s everything sinks back, the disc shrinks to the ball, the rings rebuild from the inside out (each drawn on from its gap edge, 0.16 s apart), the counter rolls down to 00, the camera pushes back in — and at 14.6 s the ball launches again: the same instant the loop starts from.
MOTION
Critically damped springs 1 − (1 + w·t)·e^(−w·t) everywhere, nothing overshoots. Motion blur by averaging 6 whole-frame samples across a half-frame shutter while the ball is in flight or shards are flying (wrap the sample times around the loop).
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: 0, 0.68, 0.8, 2.3, 4, 5.5, 7.65, 7.8, 9.64, 9.8, 10.6, 11.5, 12.6, 13.6, 14.999. 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
Das Format „Ball in rotierenden Ringen“ als kleine Geschichte: Eine Anfrage springt durch sieben Ringe von Inbox bis Reply, findet jede Lücke, jeder Ring zerspringt in Splitter, bis am Ende „Answered“ steht. Echte, vorberechnete Physik, 15 Sekunden, nahtlose Schleife, mit Prompt zum Nachbauen.
Was ich dabei gelernt habe
Echte Physik liefert schöne Bahnen, aber kein Timing. Ich rechne deshalb jeden Ring zuerst ohne Lücke durch und drehe die Lücke dann genau unter den Aufprall, der zum Takt passt. So bleibt alles physikalisch und trotzdem geschnitten wie ein Clip.
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 Schneidemaschine Isometrischer Loop 0:09 -
Wie Backlinks wirken Erklärclip 0:20 -
Ein Ball, der mit jedem Aufprall wächst Physik-Simulation 0:10 -
Eine Form, vierzehn Zustände UI-Motion 0:14 -
Was ein Zuhause ausmacht Scherenschnitt 0:20 -
Wörter, die tragen Kinetic Typography 0:20 -
Logo-Reveal aus Splittern Logo-Reveal 0:11