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

纯代码UI动效设计短片

Pure Code UI Motion Design Short Film

作者开源了一份提示词模板,用于纯代码生成的UI动效视频:一个形状随120bpm音乐变形出8到12种界面状态,用Playwright和ffmpeg渲染、numpy做节拍分析,完全不用After Effects。

纯代码UI动效设计短片 — AI video creation
纯代码UI动效设计短片

提示词 / 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 画布中创作

  • 赤焰羽翼的丝裙幻境

    制作一段20秒、9:16竖屏的奇幻肖像视频。使用所提供的身份参考图来确定成年女性角色的面部外观与身份。她穿着优雅飘逸的丝绸长裙,长发随风流动。开场以近距离肖像突出美丽且对称的眼睛和精致面容,随后缓慢展现她身后展开的巨大火焰羽翼。羽翼散发神奇的生物荧光,在她的脸庞与裙摆上投射温暖火光和清冷的发光高光。加入飘落的火星、细微发光粒子、轻柔的布料运动,以及优雅的电影感推近镜头。保持高度细致的数字绘画与精致奇幻概念艺术风格,面部锐利对焦、纹理丰富、戏剧性而优雅的光照和干净的氛围背景。不要对白、旁白、字幕、标志或依赖音频的动作。

  • 走入希望之光

    MiniMax H3 视频生成规格:生成一段 20 秒、16:9 画幅的电影感视频。展现一个人完全走入温暖光线中的过程,动作缓慢而坚定。开场是逐渐淡入黑暗的昏暗背景,随后呈现包围人物的金色光晕,人物向前移动并走入光中。采用中景镜头,持续聚焦面部以及不断扩展的光线。面部逐渐被照亮,流露出释然与希望。使用温暖、柔和而明亮的光线,轻轻化解阴影。全程保持平静、宁静且充满希望的氛围。不要出现文字、标志或依赖音频才能理解的动作。

  • 梦魇异象中的腊肠犬肖像

    制作一段20秒、9:16竖屏的当代超现实艺术视频,核心是腊肠犬肖像。开场为亲密的头肩构图:棕色毛发细节丰富,眼神富有表现力,口吻修长,在昏暗氛围背景前接受柔和的定向光。随后逐渐加入令人不安的梦境异象——细微的重复眼睛、缓慢拉长的影子、漂浮的植物形态、半透明几何碎片和微弱的宇宙纹理,同时保持犬只可辨认且解剖结构连贯。采用深棕、黑曜石、低饱和蓝绿色、绯红点缀与发光金色组成的多层次色彩。融合心理梦境意象、幻视象征、精细的墨线质感、绘画肌理和高度细节化的当代构图。保持缓慢催眠般的镜头运动,逐步推进,配合细腻视差、漂浮颗粒和流畅变形转场。结尾定格在强烈的特写中,异象围绕平静的腊肠犬稳定下来,营造诡谲而诗

  • 超市中的诡异气功

    生成一段15秒、16:9画幅的电影感恐怖场景。在普通杂货超市的通道中央,一名未指明身份的人在货架和购物车之间平静地练习缓慢的气功动作。营造受1970年代启发的恐怖电影氛围,画面写实,构图戏剧化,带有令人不安的静止感、轻微的荧光灯闪烁、深沉阴影和克制的紧张感。采用受Kodachrome、Cinecolor和Cinestill启发的色彩特征,加入明显的模拟胶片颗粒、老旧胶片质感、轻微VHS录像瑕疵、柔和光晕以及真实的时代性不完美效果。使用有意设计的电影式取景和轻微镜头运动,同时保持练习气功的人物清晰可见。不要对白、字幕、标志或任何额外输入媒体。

  • 暮色厨房里的多年之舞

    生成一段20秒、16:9画幅的真人电影感视频。场景设在黄昏时分杂乱的农舍厨房内,使用温暖的实景灯光和浅景深。一对七十多岁的白人老夫妻并肩做饭。老年女性的外貌必须匹配所提供的身份参考图;她穿着沾有面粉的厨房围裙,里面是朴素的家居服。角落放着一台老式台式收音机,播放缓慢、带有小喇叭质感的doo-wop曲调。丈夫用摇曳却浑厚的男中音演唱英文:“You’re still the one I’m dancing with.” 他用木勺搅拌冒泡的锅,并像指挥家一样在锅沿敲两下。妻子把面粉弹到他胸前,牵住他的手,用和声回应:“after all these years.” 他把她旋转到手臂下,她的围裙带向外

  • 窗边小鸟来访

    生成一段20秒、16:9的视频。使用提供的身份参考图确定成年女性的外貌,并在全片中保持她的面部特征、发型和身材比例一致。她是一位24岁的韩国女性,留着深色长发,头发自然披散,妆容淡雅,皮肤质感真实;穿着宽大的酒红色连帽衫和宽松休闲长裤。场景是一间宁静清晨的舒适卧室。窗户微微敞开,轻薄窗帘随微风轻轻摆动。柔和日光洒在窗台上,一只小麻雀意外落在窗台上。 镜头来自站在附近的另一人,女性绝不自拍。采用自然、连续的实时镜头,带有轻微手持晃动、不完美构图、柔和的自动对焦游移、轻微曝光变化、略微褪色的色彩、柔和对比度,以及早期2000年代 Sony MiniDV 家庭录像的颗粒质感。摄影者对小鸟的动作略有