OpenZhenZhen AI 提示词画廊 · Claude Opus 5.5 · video

纯代码生成的UI动效展示

UI Motion Effects Generated Purely with Code

作者用 Opus 5.5 完全用代码生成了一段 UI 动效视频,没有使用 After Effects,并公开了用于制作该作品的完整可复用提示词模板。 原作需要参考素材;请自行准备图片、视频、音频、文档或代码库等输入。

纯代码生成的UI动效展示 — AI video creation
纯代码生成的UI动效展示

提示词 / Prompt

English prompt

<inputs> Ask me for: 8 to 12 UI states the shape should turn into (e.g. button, loader, player, slider, toggle, tabs, chart, command palette, toast), a pure black-and-white palette or one accent color, and a royalty-free track around 120 BPM (e.g. from Mixkit, free for commercial use). </inputs> <direction> Dribbble-level UI motion. One shape, no cuts: each state is the same element changing size, radius and color, while its content swaps with a quick blur. A cursor triggers every change through actual clicks and drags. Use a light warm-gray canvas, black-and-white components and one clean UI font (Geist). Springs throughout, with only a slight overshoot. Zoom the camera so each state fills the frame. Match the final frame to the first for a seamless loop. Banned: bouncy easing, particle bursts, glows, gradients on UI chrome, inconsistent icon strokes, dead time, anything that feels like a template. </direction> <structure> 120 BPM, 7 bars, with an action on every beat. Button → loader → check → dynamic island → music player with a play/pause morph → scrub the progress bar → it turns into a volume slider that stretches when dragged past max → a toggle switches on the beat → its knob becomes a liquid tab indicator → the tabs expand into a chart that draws itself, with a tooltip on hover → it folds into ⌘K → type to filter → enter → toast → back to the button. </structure> <build> 1. One HTML file, square 1440x1440. Compute every style from time inside seek(t): no CSS transitions, timers or state carried between frames. 2. Use closed-form step responses for springs. If a value changes target multiple times, add one spring for each change so it remains a pure function of time. 3. Give the tab indicator’s two edges separate springs, letting the leading edge stretch ahead of the trailing one. Use the same approach for the toggle knob. 4. Make drags direct: while the cursor is held down, calculate the value from its position. On release, spring back from that position. 5. Analyze the song with numpy to find the beat grid and begin on a downbeat. Position each UI sound using 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-grid, cramped or difficult to read. </build> <gotchas> Don’t use will-change on anything the camera scales, or the text will look blurry. Text swapping inside a morphing container needs separate enter and exit timing to avoid overlap. Make the final frame identical to the first including cursor position and speed or the loop will stutter. </gotchas> <start> Ask me for the inputs, then show me the state list on the beat grid before writing any code. </start>

主题与风格

探索更多图片和视频提示词 · 生成图片 · 生成视频 · 在 AI 画布中创作

  • 女人

    超写实电影感人像短片,横屏 16:9,时长 10 秒,无对白、无旁白。 主体:一位二十出头的东亚年轻女性,黑色长发自然垂落到肩后,几缕碎发被风轻轻吹动;穿一件浅色真丝吊带衫,细肩带、锁骨与肩颈线条自然外露,整体是清爽日常的夏日造型。妆容清透,皮肤保留真实的毛孔、细微色差与自然高光,不做磨皮,不追求塑料质感。全片保持同一张脸、同一发型、同一件吊带衫、同一光线方向。 场景:傍晚的高层公寓,落地窗前。窗外是虚焦的城市灯火与深蓝暮色。室内只开一盏暖色落地灯,光从侧后方勾出她的肩颈轮廓,正面由窗外的冷蓝环境光补亮,形成暖冷对冲。 核心事件:她原本背对镜头望着窗外,被一阵晚风和远处隐约的闷雷唤回神,

  • 路边的她

    写实电影质感短片,10秒,16:9横屏,单一连续镜头,无剪辑、无对白。 【场景与氛围】 中国西北或内蒙一带的秋日草原公路。一条双车道柏油公路从画面右下方斜向延伸至远处地平线,路面有细微裂纹与浅色分道线,透视消失点压在画面上三分之一处。公路左侧是一片空旷的金黄色草原,草高及膝,随风形成层层波浪般的倒伏与起伏。远处是低垂厚重的灰白色层云,云底压得很低,几乎与远山相连;更远处是一列轮廓柔和的青灰色山脊,被空气透视淡化成淡蓝灰色。天色是阴天傍晚的散射光,光比柔和,没有直射阳光,整体色调冷调偏灰,草地的暖金色与大面积的冷灰形成温和对比。 【主体与一致性】 一位二十七八岁的亚洲女性,倚靠在公路左侧一辆

  • 闪身步

    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呼吸感定格