A ring called Orbit
Portrait product spot for an invented device, real 3D without a library
- 0–1.5 s A light edge runs around the ring in the dark, then the camera accelerates toward the face as it lights up
- 1.5–3.1 s The cut into the macro catches the move decelerating, a highlight travels across brushed titanium
- 3.1–5.9 s Pull back to the full ring, it turns, “Light.” “Smart.” “Yours.” appear one after another
- 5.9–7.3 s Four beats, a sheet of light crosses the ring and brings the next finish with it
- 7.3–10 s The ring becomes the O of “Orbit”, the claim below, then the light goes back to black
- UI motion
- 10 s Loop
- 1080 × 1920 · 30 fps
- WebGL2
- 1.5 MB
Prompt
Build a 10-second looping product spot in portrait 9:16 — stage 1080×1920 CSS px — for an invented smart ring called "Orbit", in the language of big tech advertising: black stage, glossy metal, precise timing, large calm type. No real brand, no real device; the product, the name and the claim are made up.
DESIGN
The ring is real 3D: a signed distance field ray-marched in a WebGL2 fragment shader, no library. Profile: a rounded rectangle swept around the axis (band 0.75 wide, wall 0.25, corner radius 0.05, both faces slightly domed for comfort fit), two fine seam grooves on the outer face, a black resin inner face with three small sensor domes. Materials: outer face brushed titanium — grooves across the band as a normal perturbation that fades out once a groove is smaller than a pixel (analytic footprint), and anisotropic reflection by sampling the environment seven times along the circumferential tangent; edges and sides polished; resin and sensor domes as glossy dielectrics. Fresnel per Schlick, metal F0 = the finish colour. Light comes only from a studio environment made of soft light strips (key upper left, a dim fill right, a rim behind the ring, a soft top, a broad panel behind the camera), plus a faint ambient gradient; key and rim always from the upper left, no colored light. Background near-black #050506 with one very soft lighter pool behind the ring; static dithering so nothing shimmers. ACES-style tone curve, 4 rotated-grid samples per pixel for clean silhouettes. Type in Geist on a 2D canvas above the WebGL canvas: feature words 168 px, weight 620, tracking −0.045 em, left-aligned at x = 96 below the ring; the name 250 px weight 540, centred in the safe area; claim 44 px at 66 % white. Keep the top 10 %, the bottom 22 % and the right 12 % free of anything important. Banned: glow orgies, lens flares, particles, bouncy easing.
STORYBOARD
0–1.5 The ring big at three-quarter view, almost black; only a rim light runs around its silhouette like a light edge feeling for the shape. From 1.12 the key flares up on the front face and the camera pushes in with an accelerating zoom toward it (speed ramp).
1.5–3.1 Cut into the macro on the same face, picking the push-in up decelerating: brushed titanium on a diagonal, the polished edge and a seam groove, a broad highlight wandering across as the key light travels and the ring turns a little.
3.1–5.9 One continuous pull-back (cubic Hermite in pose space, velocity-matched at both ends) to the full ring, which keeps turning. "Light." "Smart." "Yours." rise out of a mask one after another (0.54 s apart); each new word takes the focus, the previous one dims to 38 %. All three sink away together before 5.9.
5.9–7.3 Four beats, 0.35 s apart: a thin vertical light sheet crosses the ring and the new finish follows right behind it (titanium → graphite → sand → ocean → titanium), each beat with a small anticipation and a damped turn step; four swatches below the ring, the selection circle glides along with the beat.
7.3–10 The ring flies into place and turns face-on to become the O of "Orbit" (measured from the font's O); a ring light around the lens makes it read as a bright metal O. "rbit" rises once the O has landed, the claim follows; the key glides slowly across the O. From 9.08 the text sinks, from 9.4 the light returns to black, only the rim stays, and the ring flies back into the first frame with the speed the opening starts with.
MOTION
Ring pose = screen position, log of the screen radius, axis tilt, azimuth and spin; poses per scene, joined by cubic Hermite segments with matched velocities, critically damped springs 1 − (1 + w·t)·e^(−w·t) for the beats, cubic easing elsewhere; nothing overshoots. Motion blur by averaging 10 whole frames over half a frame during the speed ramp, the pull-back, the flights and each beat — never across the cut. Text never moves during a camera move. ?lang=de|en switches the words and the claim ("Leicht." "Klug." "Deins." / "Intelligenz, leicht getragen.").
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 s from 0 to 10, plus every 0.1 s across 1.0–2.0, 2.6–3.6, 3.1–4.1, 5.4–6.4, 6.8–7.8, 9.1–10.1 and the loop seam — in both languages. How to recreate it
-
Give the prompt to a coding agent
Create an empty folder and paste the prompt into Claude Code, Codex or Cursor. The agent writes one HTML page and one script — the animation then runs right in the browser.
-
Let it check the stills
The prompt makes the agent render stills and look at them itself. Only refine what you don't like in the picture: “scene 3 is too busy” works better than a new prompt.
-
Render to MP4
Because every animation can draw any frame exactly through
window.MOTION.seek(t), a small script renders it frame by frame — no stutter, no screen recording. Then ffmpeg joins the frames into a clip.
# 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
Background
A product spot in the style of big tech advertising for a smart ring that doesn't exist: a light edge traces it out of the dark, a macro shot glides over brushed titanium, three words set the pace, the finishes change on the beat, and finally the ring becomes the O of its own name. 10 seconds, 9:16, built as code — with a prompt to recreate it.
What I learned building it
Metal only looks as good as what it reflects. It turned from a black lump into titanium once I built the studio as light strips instead of placing lamps. And a hard cut disappears when the camera speeds up before it and slows down after it: the eye reads one single move.
Inspiration
The model was a video by @92angelz ((opens in a new tab)) on TikTok. What I built is my own take on the format, not the video itself; the prompt above describes exactly this version.
More motions
-
An agent platform, introduced UI motion 0:15 -
Agents that pick the model UI motion 0:14 -
A sentence becomes an app UI motion 0:15 -
An operating system, introduced UI motion 0:47.2 -
Your new design partner Voice-over 0:54.3 -
Ten kilometres, floating UGC ad 0:12.6 -
The journey of an order Explainer 0:34 -
Make it move Kinetic typography 0:08 -
From noise to a workflow Particles 0:14 -
The Gimli Glider Voice-over 0:19 -
Oscilloscope intro Oscilloscope 0:20 -
A keystroke in cross-section Explainer 0:20 -
The bug that wants to stay Short film 0:20 -
Shin, not foot Voice-over 0:17 -
Jellyfish in a light shaft Organic loop 0:18 -
A logo that comes alive Logo reveal 0:08 -
How circles draw any shape Explainer 0:20 -
Pixel wizard Pixel art 0:16 -
The shortest war Voice-over 0:16 -
Loose mosaic wall Mosaic 0:20 -
Near fall Physics simulation 0:09 -
A Negroni, explained Explainer 0:20 -
Where the fuel money goes Voice-over 0:19.5 -
One print, nothing else Title sequence 0:20 -
Infinite zoom into the detail Infinite zoom 0:15 -
Cube stack Short film 0:07 -
A request at 22:47 Chat story 0:17 -
Claude Code in three steps Voice-over 0:17.5 -
The inbox factory Isometric loop 0:12 -
From 0 to 100 % soft Physics simulation 0:10 -
One line, three inks Showreel 0:20 -
The request breaks out Physics simulation 0:15 -
The slicing machine Isometric loop 0:09 -
How backlinks work Explainer 0:20 -
A ball that grows with every bounce Physics simulation 0:10 -
One shape, fourteen states UI motion 0:14 -
What makes a home Paper cut-out 0:20 -
Words that carry Kinetic typography 0:20 -
Shard logo reveal Logo reveal 0:11