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

提示词 / 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 画布中创作
相关作品
- 白鹈鹕骑车穿越名画长河
一只白鹈鹕骑着自行车,穿过二十幅不同时代的画:从撒哈拉岩画、汉画像石、宋代山水,到浮世绘、星月夜、呐喊,再到示波器、8-bit 游戏、蒸汽波,最后在代码编辑器里被一行行 SVG 画了出来。每过一道画框,世界和鹈鹕都换一种画法。 片中没有一张手绘图,也没有一秒录音——所有画面和音乐都由代码生成(p5.js + p5.brush + Web Audio)。
- 胜利时刻的慢动作彩屑
生成一段20秒、16:9画幅的视频。展现五彩缤纷的彩屑从天空飘落,以优雅的慢动作充满画面,营造欢乐的胜利庆典氛围。采用明亮的庆祝灯光,清晰呈现纸质彩屑,动作轻柔漂浮,整体具有精致的电影感。让画面始终聚焦于飘落的彩屑,并持续传达兴奋、胜利与节庆活力。
- 暴雪中的骑行者
生成一段时长20秒、宽高比16:9的电影感视频。在广阔的冬日荒野中,一名意志坚定的骑行者顶着猛烈暴风雪艰难爬坡。采用静止、亲近的镜头构图,聚焦骑行者的上半身,展现其迎着陡坡前倾的姿态。骑行者穿着厚实的深色夹克、头盔和手套,牢牢握住车把。大片雪花在画面中盘旋飞舞,与色调低沉的雪地景色形成映衬;远处虚化的树木和路标暗示周围辽阔的荒野。通过骑行者的姿态和轮胎碾过积雪时持续的声响,表现其体力消耗与坚韧。画面保持克制而富有电影感,采用自然的冬日光线和低饱和色调。
- 暮色桥面追车
生成一段20秒、16:9画幅的电影感视频。蓝调黄昏时分,在一座延伸很远的混凝土桥上,一辆深色双门轿跑车沿车道标线行驶,并谨慎地绕过一辆较慢的卡车。镜头位于岸边,使用长焦镜头向右进行稳定的横向摇摄,压缩桥面空间,让轿跑车看起来缓慢爬过画面,同时车灯形成轻微拖影。潮湿的沥青映出最后的冷蓝灰天光、温暖的尾灯以及迎面车辆的前灯。采用35毫米变形宽银幕质感、椭圆形散景、细腻胶片颗粒和克制的对比度,车辆运动与反射须真实可信。保持宽阔且连续的构图,不要剪辑、文字、标志或可见车牌。
- 白发刺客:宫殿长廊突袭
15秒、16:9的电影感奇幻动作片段,在昏暗的宫殿长廊中展开。长廊有巨大的石柱、抛光反光石地面和冷色顶光。成年白发女刺客的外貌必须匹配所提供的身份参考图;保持她的服装完整,参考图仅用于脸部、发型和角色身份。0–2秒:她在冷色光束下进入走廊,手持利刃准备战斗。2–5秒:她以杂技般的动作挥剑横扫,一名全副武装的守卫被击得踉跄滑过地面。5–8秒:她用流畅的剑弧和灵活步法穿过持盾敌人,带出明显的运动模糊。8–11秒:她继续深入大厅,躲避协同作战的守卫,从阵形空隙中出剑,背景可见倒下的敌人。11–14秒:用紧凑有力的镜头突出她坚定的表情,以及对一名守卫的精准斩击,后方仍有持盾敌人。14–15秒:定格在优
- 雨窗双猫
生成一个20秒、16:9的电影感场景:两只猫坐在一扇雨痕交织的窗边。一只蓝色的猫专注地看着落雨,旁边一只红色的猫蜷缩着熟睡。动作轻柔自然,窗外阴天光线柔和,整体氛围安静而温馨。全程清晰呈现两只猫和窗户。不要文字、字幕、标志或音频。