Ein Tastendruck im Querschnitt
Erklärclip: mechanischer Schalter, Kraft-Weg-Diagramm und Signal bis zum Buchstaben
- 0–4,2 s Die Tastenreihe von oben, Schnittlinie A–A, dann kippt die Kamera in die Vorderansicht und ein Wisch schneidet die J-Taste auf
- 4,2–9 s Explosionszeichnung — Tastenkappe, Stößel, Gehäuse oben, Feder, Kontaktblatt, Gehäuse unten und Platine mit Beschriftungslinien
- 9–12,4 s Der Druck in Zeitlupe — die Feder staucht sich, bei 2,0 mm und 45 cN schließt der Kontakt, bei 4,0 mm und 60 cN ist Anschlag
- 12,4–15,7 s Das Signal — der Kontakt prellt, der Controller wartet 5 ms, eine saubere Flanke bleibt, auf dem Bildschirm steht ein j
- 15,7–20 s Loslassen — die Feder schiebt den Stößel zurück, der Schnitt schließt sich, die Kamera kippt zurück zur Reihe
- Erklärclip
- 20 s Loop
- 1080² · 30 fps
- Canvas 2D
- 800 KB
Prompt
Build a 20-second looping explainer, 1080×1080: "What happens in a keystroke" — one mechanical key switch from the keycap to the letter on screen, as a flat technical illustration with fine depth, not clip art. All on-screen text comes from one small dictionary; ?lang=de switches to German. No brand names.
DESIGN
Cool paper #ECEEF2, ink #1A212C, muted #6F7A89, one accent: vermilion #EE4F2B (stem, force arrow, live point, signal, the J legend). Everything is modelled in millimetres (z up, plate top = 0): a generic linear switch with 4.0 mm travel, 30 cN preload and 7.5 cN/mm, so 45 cN at the 2.0 mm actuation point and 60 cN at bottom-out. Cut surfaces are flat fills with a 1.6 px ink outline, the far walls behind the cut plane a lighter tone of the same part: keycap white, top housing light grey, bottom housing slate, plate and circuit board dark, spring and contacts steel. Geist for title, labels and captions, Geist Mono for every number, kicker and axis. Fixed chrome: kicker and title top left, a view label top right ("TOP VIEW" / "SECTION A–A"), bottom left "0n / 05" with the scene name and a two-line caption that breaks at the sentence end, bottom right five progress segments.
STORYBOARD
0–4.2 s Top view of a five-key row (G H J K L, homing bar on J) on a dark board with a soft shadow. The J legend turns accent, a dash-dot section line A–A draws across the row with arrows and letters. The orthographic camera tilts 90° around the middle of the switch into the front view while zooming in; legends foreshorten and fade. A vertical accent line wipes the front half of the J key away and reveals the section; then the neighbours slide out of frame sideways, opaque and staggered, outer keys first.
4.2–9 s Exploded view: keycap, stem, top housing, spring (relaxing to its free length), contact leaf (off to the left, closing because nothing holds it open), bottom housing with plate, circuit board. Leader lines grow from a dot on each part to a label column, staggered top to bottom. Labels retract, the parts reassemble while the camera zooms in and moves the switch to the left.
9–12.4 s The press in slow motion. A force arrow appears above the cap, the stem travels 4.0 mm, the spring coils close up, the leg on the stem lets the contact leaf swing onto the fixed contact at exactly 2.0 mm (accent ring, then a steady dot). On the right a force–travel plot draws in sync: 0–4 mm, 0–80 cN, live readouts, marked actuation point (2.0 mm · 45 cN) and bottom-out (4.0 mm · 60 cN) with a dashed hard stop.
12.4–15.7 s The plot becomes a scope on the same axes: the curve runs back to the origin, tick labels change from mm to ms. A trace grows from the switch pin to a controller chip and on to a small screen. The raw contact signal draws with a short jagged edge while a broken pulse runs down the trace; a 5 ms bracket appears, the chip's bar fills, everything inside the window sinks to low and one clean accent edge remains; a solid pulse runs to the screen and "j" appears beside the cursor.
15.7–20 s Release: the spring pushes the stem back, the contact opens, scope, chip and screen retract. The camera pulls back, the neighbours slide back in, inner keys first, the wipe closes the key from the left, the camera tilts back to the top view; caption 1 and the empty progress bar are back before the loop point.
MOTION
The row is a set of solids (rounded rings joined by quad strips, shaded by their normal, culled against the view direction) projected with one tilt angle, so top view, front view and everything between are the same geometry. The section is drawn in the same millimetres, so the wipe matches the silhouette exactly. Spring: a projected helix with closed end coils, back half-turns behind the stem rod, front half-turns in front; its length is seat minus floor. The contact leaf rotates about its root as a function of travel only. Camera moves use smootherstep, zoom is interpolated in log space, parts and camera share one curve so nothing runs ahead of the zoom; arrivals use critically damped springs normalised to land exactly on 1. No text changes during a camera move.
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, every 0.1 s around 2.0–5.9, 7.6–9.9, 12.3–13.2, 14.4–15.1 and 16.9–19.9, plus 2× crops of the section at 9.4, 10.9 and 12.2, in both languages; frame 0 must equal frame 19.97. 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
Was bei einem Tastendruck passiert, als technische Illustration: Die Kamera kippt von der Tastenreihe in den Schnitt eines Schalters, zeigt seine sieben Teile als Explosionszeichnung und dann den Druck in Zeitlupe. Die Feder staucht sich, bei 2,0 mm schließt das Kontaktblatt, ein Kraft-Weg-Diagramm läuft mit, das Signal wird entprellt und erscheint als Buchstabe. 20 Sekunden, Deutsch und Englisch, mit Prompt.
Was ich dabei gelernt habe
Ich habe den Schalter einmal in Millimetern gebaut und alles daraus abgeleitet: Draufsicht, Schnitt, Federlänge und Diagramm. So schließt der Kontakt im Bild genau dort, wo die Kurve ihren Auslösepunkt markiert. Übergänge wirken ruhiger, wenn Teile und Kamera dieselbe Kurve fahren.
Inspiration
Ausgangspunkt war ein Prompt von @iniyanai ((ö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 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 -
Was ein Zuhause ausmacht Scherenschnitt 0:20 -
Wörter, die tragen Kinetic Typography 0:20 -
Logo-Reveal aus Splittern Logo-Reveal 0:11