Was ein Zuhause ausmacht
Scherenschnitt-Schattentheater im Hochformat, Ebene für Ebene von hinten beleuchtet
- 0–4,45 s Ein Haus auf dem Hügel in der Dämmerung, der Raum schimmert schon durch die Scheibe, dann fliegt die Kamera durchs Fenster
- 4,45–8,3 s Drinnen dampfen zwei Tassen, die Katze schläft unter dem Tisch, der Vorhang fällt
- 8,3–12,8 s Der Vorhang geht auf, der Baum vor dem Haus durchläuft alle vier Jahreszeiten, die Kulissen sinken an Fäden
- 12,8–16,6 s Zwei Menschen gehen heim, die Tür geht auf, jemand winkt im Licht, die Szene klappt zusammen
- 16,6–20 s Das Dorf klappt auf, Fenster für Fenster geht das Licht an, die Kamera gleitet zurück zum ersten Bild
- Scherenschnitt
- 20 s Loop
- 1080 × 1920 · 30 fps
- Canvas 2D
- 2,8 MB
Prompt
Build a 20-second looping paper cut-out shadow theatre in portrait 9:16 — stage 1080×1920 CSS px (not square) — on the question "What makes a place feel like home?". Five small scenes made of layered paper flats lit from behind, one short line of text per scene, and four scene changes that each use a different trick of the paper theatre.
DESIGN
Every flat is a Path2D silhouette cut with a slight hand-cut wobble (subdivide edges, offset points along the normal by ±1 px of smooth noise). One sheet of paper = a soft drop shadow thrown away from the scene's light, a dark cut edge on the far side and a lit cut edge on the near side (paper has thickness), the flat face, its own patch of a generated fibre texture (offset, rotated and scaled per layer, overlay blend), a faint buckle (soft-light gradient) and the backlight shining through (radial gradient in screen space, stronger on the back layers). Back flats light, front flats dark. Openings are real holes (evenodd) with warm light behind them: windows, a round gable window, a door cut as a thin glowing slit, lace holes in curtains and tablecloth. Shadow puppets are jointed and show it: a thin holding rod under each figure and small brass fasteners at the joints. Text in Instrument Serif 86 px, two centred lines at y ≈ 432/528, always over plain sky or wall — cream on dark skies, dark brown on light ones; trailing punctuation hangs so the words sit on the centre line. Keep the top and bottom ~10 % free of anything important (social UI). Banned: clipart shapes, coloured glows on text, particles for their own sake, bouncy easing.
STORYBOARD
0–4.45 Dusk, a house on a hill (far hills, mid hills with tiny lit houses and conifers, near hill with trees, the house, window frames with glazing bars as their own layer just in front of the wall, a picket fence, stepping stones growing towards the viewer, swaying grass), moon, stars that each twinkle on their own clock, a ribbon of chimney smoke in a draught. The room is already faintly visible through the left window. Line 1 (0.15–2.7). From 3.1 the camera flies through the lower pane: zoom on a log scale with ease-in-out, the frame parts from the wall by parallax, everything close to the lens goes soft (depth of field); the room is rendered inside the window's clip with its own camera and takes over the whole frame.
4.45–8.3 Inside: warm wall, shelf, an oval frame with a little house, a pendant lamp that swings a hair (its light cone and the shadows move with it), a teapot and two cups whose steam leaves thin, swells and curls, a table with a scalloped lace cloth, two chair backs, a cat asleep (breathing, ear and tail twitch), the stage curtain with tie-backs breathing slightly. Line 2 (4.75–7.3). 7.66–8.24 the tie-backs let go and the curtain falls shut, top first; behind it the set changes; 8.29–8.9 it draws aside and the valance lifts out.
8.3–12.8 The tree in front of the house through four seasons, every leaf cluster on its own clock and in one of three paper shades: blossoms pop, petals fall, deep green, a wave of rust, leaves tumble down over their long axis, bare branches, snow caps, snow on roof and ground, flakes of different sizes; a swing swings out, damped. Sky, hills and ground change colour with the seasons. Line 3 (8.9–11.45, gone before a flake reaches it). 12.2–13.3 the flats are lowered on visible threads, front first, while the next set is raised on threads, back first; skies crossfade.
12.8–16.6 Sunset, the sun keeps sinking: an adult (hat, coat, scarf) and a child (beanie, backpack) walk hand in hand towards a house. The walk is driven by distance, not time: the stance foot stays planted, the swing foot lifts and rolls, two-bone IK for knees and for the held hands, the child skips a little, one closing step at the stop, head and scarf swing on. 14.3 the door swings open on its hinge, a soft-edged wedge of light grows across the path and rims the figures, someone in the doorway raises an arm and waves from the elbow. Line 4 (13.2–15.75). 15.95–16.6 every flat folds down onto the stage floor like a pop-up page, front first, and the village unfolds, back first.
16.6–20 The village wide; windows light up one by one. Line 5 (16.95–19.5). From 17.6 the camera glides back to the first frame in a shallow arc, so the loop reads as a camera move.
MOTION
One pinhole camera per set (scale D/(D − z) per layer), slow drift everywhere, critically damped springs 1 − (1 + w·t)·e^(−w·t) and cubic ease-in-out; nothing overshoots. Motion blur by averaging 9 whole-frame samples over half a frame during the window flight, the curtain and the set changes. Each text line rises out of a mask at its own baseline (0.4 s, second line 0.12 s later) and sinks back into it; every line stays fully readable for 2 s and is never on screen during a scene change. Everything visible through the window at the loop point runs on multiples of 1/20 Hz. ?lang=de|en switches the lines.
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.5 s from 0 to 20, plus every 0.1 s across 3.0–4.5, 7.6–9.0, 12.1–13.4 and 15.8–17.2 — in both languages. 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 Schattentheater aus Papier im Hochformat: Die Kamera fliegt durch ein erleuchtetes Fenster, auf dem Tisch dampfen zwei Tassen, ein Vorhang fällt und öffnet sich auf einen Baum in vier Jahreszeiten, zwei Menschen kommen heim, und am Ende klappt das ganze Dorf auf. 20 Sekunden, 9:16, als Code gebaut — mit Prompt zum Nachbauen.
Was ich dabei gelernt habe
Papier wirkt erst durch das, was zwischen den Ebenen passiert: eine helle und eine dunkle Schnittkante, ein Schatten, der mit dem Licht wandert, Licht, das durch Löcher fällt. Und ein Gang gleitet nicht mehr, sobald er an der Strecke hängt statt an der Zeit: Der Standfuß bleibt, wo er aufgesetzt hat.
Inspiration
Ausgangspunkt war ein Prompt von @x4b47x ((ö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 -
Eine Form, vierzehn Zustände UI-Motion 0:14 -
Wörter, die tragen Kinetic Typography 0:20 -
Logo-Reveal aus Splittern Logo-Reveal 0:11