Würfelturm
Ein 7-Sekunden-Loop im Hochformat mit sechs Würfelfiguren und Squash & Stretch
- 0–1,6 s Der große blaue Würfel fällt aus der Röhre und landet mit Squash, der grüne plumpst drauf, der untere blinzelt
- 1,6–2,9 s Koralle, Gelb und Rosa landen im Takt, die Stauchung läuft als Kette nach unten, der Turm wackelt stärker
- 2,9–4,75 s Der Kleinste lugt aus der Röhre, schaut hinunter und plumpst obendrauf, der Turm schwankt, alle schauen besorgt
- 4,75–5,9 s Der letzte Ausschlag wird zum Sturz, die Würfel purzeln einer nach dem anderen in die Bodenröhre
- 5,9–7 s Der Große bleibt allein, schaut zur Röhre, hüpft fröhlich hinterher und fällt oben wieder herein
- Kurzfilm
- 7 s Loop
- 1080 × 1920 · 30 fps
- Canvas 2D
- 422 KB
Prompt
Build a 7-second looping short in portrait 9:16 — stage 1080×1920 CSS px: six little cube characters drop one by one out of a pipe onto a stack, the tower sways harder with every cube, tips over, and they pour into a pipe in the floor; the big one at the bottom hops in last and drops out of the top pipe again, which is frame 0.
DESIGN
Soft, friendly 3D in Canvas 2D on a seamless pastel backdrop (lilac at the top, warm cream towards the floor, a soft light behind the tower, a faint vignette; rendered once and reused so it stays pixel-identical). Camera slightly above the cubes: each cube is a rounded front face (corner radius 24 %) plus a visible top face (a rounded trapezoid, 17 % of the width deep, squashed with the cube, fading out as a cube rolls past 45°, narrower at the back), so a smaller cube on a bigger one shows the bigger one's top around it; it sits centred in depth on the face below. One light from the upper left: front face graded light to dark, lit top-left bevel and shaded bottom-right bevel as offset strokes clipped to the face, a soft specular spot, tinted lilac shadows (no black). Soft contact shadows on the floor and a shadow blob on the top face below each cube; a falling cube's shadow grows as it approaches. Two cream-white cylinders: one hangs from the top edge, its opening seen from below; one stands on the floor to the right, its opening seen from above. Six characters, sizes 176 → 108 px, each with its own face (dark oval eyes with a white catchlight, a mouth made of two curves, soft blush): calm periwinkle with half-closed lids, cheerful mint with an open grin, nervous coral with round eyes and a small "o", smug butter with lidded eyes and a crooked smile, shy pink looking down with strong blush, cheeky sky blue winking with its tongue out. Base framing 1.15×; pipe mouth just below the top 10 %, floor just above the bottom 22 %, nothing important in the right 12 %. No text, no particles, no glow.
STORYBOARD
0–1.6 The big periwinkle cube is already falling (stretched, wide eyes, "o" mouth), lands with a squash, the mint one drops on it; the cubes below look up at each faller and blink as the chain reaches them.
1.6–2.9 Coral, butter and pink land at a steady 0.68 s beat; each landing squashes the newcomer, then each cube below a beat later and a little less; every landing kicks the tower into a slightly bigger wobble.
2.9–4.75 The small blue one slides halfway out of the pipe, looks left and right down at the tower, then drops on top. Two growing swings; all faces turn worried and look towards the lean; the camera pushes in 4 %.
4.75–5.9 The last swing to the right becomes the fall: the column tips over the base's right edge, the cubes come apart and tumble in quarter turns into the floor pipe one after another, nearest first, each flung a little higher the higher it sat; the pipe swells briefly with every one it swallows; the camera eases back.
5.9–7 The big one rocks back flat with a soft thud, looks at the pipe, blinks, crouches, hops in with a happy face and a quarter roll — and drops out of the top pipe again: frame 0.
MOTION
Falls under gravity (9000 px/s²) with stretch growing with speed. Squash is an impact that arrives within two frames and returns critically damped, 1 − (1 + w·t)·e^(−w·t); nothing overshoots. Each level tilts relative to the one below about the corner it leans onto (blocks rock on their edges). Flights are Hermite curves sideways and parabolas vertically, starting from the cube's actual position and speed on the stack and ending in the pipe opening. A cube in a pipe is clipped by the opening minus its near rim band, so it sinks behind a straight line. Faces blend parameter sets (eye opening, lid, squint, mouth width, opening, curve, skew, gaze) per state; breathing and blinks run on whole cycles per 7 s. Motion blur: while a cube falls, flies or the column tips, average whole-frame samples over a 0.35-frame shutter, one per ~4 px of travel.
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 0.1 s across the whole clip, crops of the landings at 2× and of the pipe openings at 2×, and frame 0 against frame 7. 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
Sechs kleine Würfel mit Gesichtern plumpsen nacheinander aus einer Röhre auf einen Stapel. Jede Landung staucht die Würfel darunter, die Gesichter blinzeln und kneifen die Augen zusammen, der Turm schwankt immer stärker, kippt, und alle purzeln in eine Röhre im Boden. Der Große hüpft hinterher und fällt oben wieder herein. 7 Sekunden, 9:16, als Code gebaut, mit Prompt zum Nachbauen.
Was ich dabei gelernt habe
Ein Stapel wirkt erst schwer, wenn die Landung nicht nur den Neuen staucht: Ich lasse jeden Würfel darunter einen Takt später und etwas schwächer nachgeben. Und Klötze drehen sich nicht um ihre Mitte, sie kippeln über die Kante, auf die sie sich gerade lehnen.
Inspiration
Vorbild war ein Video von @esch_o ((öffnet in neuem Tab)) auf TikTok. Gebaut habe ich eine eigene Fassung des Formats, nicht das Video selbst; der Prompt oben beschreibt genau diese 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 -
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 -
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