OpenZhenZhen AI 提示词画廊 · Claude Opus 5.5 · video
纯代码UI动效设计短片
Pure Code UI Motion Design Short Film
作者开源了一份提示词模板,用于纯代码生成的UI动效视频:一个形状随120bpm音乐变形出8到12种界面状态,用Playwright和ffmpeg渲染、numpy做节拍分析,完全不用After Effects。

提示词 / Prompt
English prompt
<inputs> Ask me for: 8 to 12 UI states I want the shape to become (e.g. button, loader, player, slider, toggle, tabs, chart, command palette, toast), pure black and white or one accent color, and a royalty-free song around 120 BPM (e.g. Mixkit, free for commercial use). </inputs> <direction> Dribbble-level UI motion. One shape, never cut: every state is the same element morphing its size, radius and color while its content swaps with a short blur. A cursor drives every change with real clicks and drags. Light warm-gray canvas, black and white components, one clean UI font (Geist). Springs everywhere, a tiny overshoot at most. The camera zooms so each state fills the frame. The last frame is the first frame, so it loops. Banned: bouncy easing, particle bursts, glows, gradients on UI chrome, mismatched icon strokes, dead time, anything that looks like a template. </direction> <structure> 120 BPM, 7 bars, something happens on every beat. Button → loader → check → dynamic island → music player with a play/pause morph → scrub the progress bar → it becomes a volume slider that stretches when dragged past max → a toggle flips on the beat → the knob becomes a liquid tab indicator → the tabs open into a chart that draws itself, with a tooltip on hover → it collapses into ⌘K → type to filter → enter → toast → back to the button. </structure> <build> 1. One HTML file, square 1440x1440. Every style is computed from time inside seek(t): no CSS transitions, no timers, no state carried between frames. 2. Springs are closed-form step responses. A value that changes target many times is the sum of one spring per change, so it stays a pure function of time. 3. The tab indicator's two edges ride different springs, so the leading edge stretches ahead of the trailing one. Same trick for the toggle knob. 4. Drags are direct manipulation: while the cursor is held, the value is computed from its position. On release it springs back from wherever it was. 5. Analyze the song with numpy for the beat grid and start on a downbeat. Place every UI sound by its measured peak. 6. Render with Playwright: 4 subframes per frame, blended with ffmpeg tmix for motion blur at 60fps. 7. Render one frame per beat before the full render. Fix anything off the grid, cramped or hard to read. </build> <gotchas> Never put will-change on anything the camera scales or the text renders blurry. Text that swaps inside a morphing container needs its own enter and exit timing or it overlaps. Make the last frame identical to the first, cursor position and speed included, or the loop stutters. </gotchas> <start> Ask me for the inputs, then show me the state list on the beat grid before you write any code. </start>
主题与风格
探索更多图片和视频提示词 · 生成图片 · 生成视频 · 在 AI 画布中创作
相关作品
- 闪身步
https://www.runninghub.ai/zh-cn/ai-detail/2109209394184478722/?inviteCode=rh-v1256
- 谁叫你这么运镜的
https://www.runninghub.ai/zh-cn/ai-detail/2109209394184478722/?inviteCode=rh-v1256 一键复刻
- 哈士奇111
subject_definitions: <Subject 1> 是本片唯一的宠物主角 — FACE from <Picture 1>(哈士奇雪橇犬,冰蓝色眼睛,黑色鼻头,黑白双色、头顶黑色面罩纹、灰黑鞍部、白脸白胸白四肢,蓬松双层毛、体态骨架匀称结实,气质活泼)。只参考 <Picture 1> 的外观(五官、毛色、花纹、体型),不使用 <Picture 1> 的背景、场景与构图;视频全程保持与 <Picture 1> 外观完全一致。 summary: [reference generation] 0-5s 静谧微距张力;5-9s 爪部微距切全景;9-15s 摇臂升空+逆光剪影谢幕。主角全程
- 哈士奇
subject_definitions: <Subject 1> 是本片唯一的宠物主角 — FACE from <Picture 1>(哈士奇雪橇犬,冰蓝色眼睛,黑色鼻头,黑白双色、头顶黑色面罩纹、灰黑鞍部、白脸白胸白四肢,蓬松双层毛、体态骨架匀称结实,气质活泼)。只参考 <Picture 1> 的外观(五官、毛色、花纹、体型),不使用 <Picture 1> 的背景、场景与构图;视频全程保持与 <Picture 1> 外观完全一致。 summary: [reference generation] 0-4s 鼻头超微距视觉钩子;4-9s 变速极速拉出+3D环绕;9-15s 0.4x呼吸感定格
- 西格玛男人修仙
用了吃猪侠那个跑30秒的工作流 所以可以跑20秒视频
- 女孩真人感测试
**【参考图像锚定】** 图像 1 是 [年轻女性],保留参考图中的面部特征、精致妆容、浅金色长直发与空气刘海、简约白色上衣、脖颈细金链与小巧金坠吊坠,及整体外貌。人物仅锚人物本身,场景按下文文字重建,不得沿用图内任何构图或背景细节。 **【分镜】** **人物初始站位与空间关系**:夜晚路灯下,她站在街边一盏路灯正下方偏前的位置,手持手机以真实前置摄像头自拍视角拍摄,画面从胸以上的中近景开始,镜头随她的手持动作运动。头顶路灯洒下柔和的暖白光池,从上方偏正前照亮她的脸 —— 额头、鼻梁、颧骨受光,鼻下与眼窝投下朝下的柔影;浅金发顶和颊边碎发被灯光勾出一圈暖色轮廓光,发丝末梢泛一点暖亮的金;