Product & UI · Nov 22, 2026
Opus 5.5 built this whole video inside a single HTML file
Opus 5.5 built this whole video… by rossa, credited to Claude Opus 5.5. Watch the Product & UI video, explore the shared prompt and visit the original X post.
rossa@rossa404
View on XOpus 5.5 built this whole video inside a single HTML file Upload, progress, a switch, a counter, a colour pick and a code card that copies itself on the drop, in 10 seconds. One shape, 7 UI states, 0 After Effects Zero plugins, zero timeline. Studios still charge $2k+ for this steal the prompt ↓ <inputs> Ask me for: the accent colour, a song (mp3), the first button label, the 3 segment labels, the counter's start number and unit, 5 swatch colours, 5 short code lines and the toast. If I skip any, use the defaults: green #1ed760, any 130-145 BPM trap or electronic track, "Upload", "Day / Week / Month", "126 BPM", white, violet, cobalt, green, lime, a seek(t) function that sets w, r and zoom, "Copied. Every frame is code". </inputs> <direction> One black shape (#0e0e10) on a warm light stage (#f4f4f1 to #e1e1dc radial). It never cuts: every UI state is born out of the one before it. White text, Geist for UI, Geist Mono for numbers, labels and code. The accent shows up only where…
The prompt behind it.
Original prompt
<inputs> Ask me for: the accent colour, a song (mp3), the first button label, the 3 segment labels, the counter's start number and unit, 5 swatch colours, 5 short code lines and the toast. If I skip any, use the defaults: green #1ed760, any 130-145 BPM trap or electronic track, "Upload", "Day / Week / Month", "126 BPM", white, violet, cobalt, green, lime, a seek(t) function that sets w, r and zoom, "Copied. Every frame is code". </inputs> <direction> One black shape (#0e0e10) on a warm light stage (#f4f4f1 to #e1e1dc radial). It never cuts: every UI state is born out of the one before it. White text, Geist for UI, Geist Mono for numbers, labels and code. The accent shows up only where something is live or chosen: the progress fill, the plus button, the picked swatch, the highlighted code line, the copied button, the toast check. A macOS cursor drives every change with real clicks. Each click lands on a beat. Every morph uses one curve: cubic-bezier(.45,0,.15,1). Pop-ins use a closed-form spring with a small overshoot. Text and numbers rise through a mask line, they never fade in. The camera zooms per state so each state fills about 60% of the frame, and creeps 1.2% through the whole loop. Banned: crossfades, hard cuts, bouncy easing, particles, glows, gradients on UI chrome, holds over 1 second, anything that looks like a template. </direction> <structure> 120 BPM grid, 24 beats, then the whole film is time-warped once onto the real song's tempo. Upload pill → click → it flattens into a thin progress bar, the accent fill runs 0 to 100% with the number → thickens into a segmented control, the white highlight springs in under the first label → click the third label, the highlight slides across and the label colours swap → folds into a counter card: a small label, a big number, an accent plus button → click plus twice on two beats, the number rolls up one digit each time through its mask → stretches into a long swatch bar, 5 dots spring in one after another → click the accent dot, a white ring springs around it → grows into a code card, file name and 5 lines rise one by one, the middle line lights up in the accent → click Copy on the drop, the button turns accent and reads Copied → collapses into a toast with a check → back into the Upload pill. Last frame = first frame, cursor included. </structure> <build> 1. One HTML file, square 1440x1440. Every style is computed from time inside seek(t): no CSS transitions, no timers, no state between frames. 2. The shape is one div. Width, height, radius and zoom come from one keyframe table [t, [w, h, r, zoom]], eased with the one curve. Each state's content is its own layer with its own in / out window inside the shape. 3. Every element inside a layer is placed from the shape's live width (centre + offset), so the segments, swatches and the progress fill stay glued to the shape while it morphs. 4. Cursor: one track of screen positions. Each click target is 720 + local position x zoom, so the cursor sits on the button at the zoom it is clicked at. A click is a short scale dip on the cursor, the button it hits dips too. 5. The counter: pick the number from time (before click 1, before click 2, after), and run the rise from the time of the last change, so each new digit rolls in from below. 6. Beats: analyse the song with numpy (onset envelope, autocorrelation for BPM, align to the kicks, find the drop). Put the Copy click on the drop; the song plays low-passed until then, as if in the next room. 7. Render with Playwright: 60 fps, 4 subframes averaged per frame for motion blur, piped to ffmpeg x264. Then one real SFX per event (click, select, tone, whoosh), placed by its measured peak, quiet under the music, loudnorm to -14 LUFS. </build> <gotchas> - The big counter number vanished: it was absolutely positioned inside its mask span, so the mask collapsed to zero size. Position the mask, keep the text inside it inline-block. - The code card sat empty for a third of a second after it grew. Start the first line's rise inside the morph, not after it. - A 139.65 BPM song against a 120 BPM grid: warp time once (t x 12 / 10.312) instead of retiming every key, then place the Copy click by the drop, not by the grid. - Two morphs go from a wide shape to a tall one in under half a second. They will read as jumps in a frame-by-frame check; that is fine as long as the shape itself never cuts. </gotchas> <start> Ask me for the inputs, then show me the state list on the beat grid before you write any code. </start>
Video and prompt by rossa. Original post ↗


