All Opus 5.5 videos › Motion graphics

30-second code-made motion design video with a scrubable timeline

by Diam (@diamai_) · Sep 27, 2026

Prompt

The author shared the full prompt.

Make me a 30-second motion design video in code, 1080x1080, 60 fps. The music is [path to your track].

First measure the track with numpy. Find the BPM, the beat times and the drop, then cut 30 seconds starting on its first downbeat. If the song ends too soon after it, pick an earlier drop.

The video is one UI element that never cuts. It morphs through 8-12 states of [your app or idea], for example an input field, a button, a loader, a card, a slider, a toggle, a timer, a toast, a chart, and back to the input. Each change lands on a beat, and each state stays on screen for at least 2 beats so people can read it. The last frame must equal the first for a clean loop. Nothing should move at t=0, and every spring should settle before the end. Move the cursor with left and top, since Chrome draws scaled elements slightly differently after an animation.

Style rules:
- one flat background, black and white components, one font (Geist)
- no gradients, glows, particles or bouncy easing
- a cursor clicks or drags before every change
- the camera zooms so each state fills most of the frame
- content inside the element swaps with a 0.15 s blur

Build it as one HTML page where every style is a pure function of time in https://t.co/QNLli3q9f0(t). Animate with closed-form damped springs (damping around 0.75, about 3% overshoot), one spring per target change, summed.

Before writing any code, show me the list of states on the beat grid and wait for my OK. After the code, render one frame per beat as a contact sheet and hold until I approve it.

For the final render, drive the page with Playwright, take 4 subframes per frame, blend them with ffmpeg tmix for motion blur, then add the music cut and export H.264.
Prompt by @diamai_, from their reply
Category
Motion graphics
Made with
Claude Code, Playwright, ffmpeg, numpy
From the author
Render took under 2 minutes on an M3 MacBook.
On X
29 likes · 671 views · 14 saves

More motion graphics

Motion graphicsPrompt0:15

15-second motion graphics showreel for a motion designer résumé

@stephanlivera♥ 17K
Motion graphicsPrompt0:14

Dribbble-style UI morph sequence looping through buttons, sliders, charts, and command palette

@twoclipping♥ 12K
Python
Motion graphicsPrompt0:32

Dynamic 15-second motion graphics showreel comparison

@shneural♥ 6.7K
Blender
Motion graphicsPrompt0:15

15-second motion graphics showreel for a designer résumé

@kenn♥ 4.7K
Motion graphicsPrompt0:15

15-second motion graphics showreel for a résumé

@ajith_io♥ 3.9K
Remotion
Motion graphicsPrompt0:15

15-second high-energy motion graphics portfolio reel

@crvdesign0♥ 2.8K
Motion graphicsPrompt0:29

Apple-keynote-style motion design launch film built from pure code

@twoclipping♥ 2.1K
Motion graphicsPrompt1:16

Dynamic motion graphics video about Indian civilisation

@rashem48♥ 1.7K
Three.js