Communitygithub.com

remotion-product-demos

使用 Remotion 创建苹果发布会级别的产品演示视频。涵盖玻璃质感手机模型、浮动 3D 球体、打字动画、卡片 UI、涟漪效果以及平滑场景过渡。

remotion-product-demos 是什么?

该技能基于 Remotion 框架,帮助开发者构建具有苹果主题风格的高质量产品演示视频。它提供了一个名为 `GlassPhoneDemo` 的完整模板,支持多种预设场景类型,如英雄页面、语音交互、打字动画、卡片列表、商品详情、下拉菜单和结束卡片。用户可以通过 JSON 配置文件灵活定义视频内容、颜色主题和手机角度,并利用内置的动画模式(如弹簧入场、交错延迟、浮动和涟漪效果)实现流畅的动态展示。技能还包含了详细的视觉风格指南和优化待办事项,并建议在创建新模板时采用自底向上的组件化开发流程。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/unisone/openclaw-skill-suite/tree/main/skills/remotion-product-demos

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Remotion 产品演示视频

使用 Remotion 构建苹果主题风格的高质量产品演示视频。

快速开始

项目:~/Projects/tails-video/ 模板:src/templates/GlassPhoneDemo.tsx

cd ~/Projects/tails-video
npx remotion render src/index.ts GlassPhoneDemo out/demo.mp4 \
  --codec=h264 --crf=18

通过 --props 自定义内容:

npx remotion render src/index.ts GlassPhoneDemo out/custom.mp4 \
  --props='{"scenes":[{"type":"hero","durationInSeconds":3}],"brand":{"name":"YourBrand"}}'

模板:GlassPhoneDemo

模式定义 (Zod)

{
  scenes: Array<{
    type: 'hero' | 'voice' | 'typing' | 'cards' | 'detail' | 'dropdown' | 'endCard',
    title?: string,
    subtitle?: string,
    text?: string,           // typing 场景
    cards?: Array<{ name, category, detail?, emoji? }>,  // cards 场景
    items?: Array<{ name, price? }>,                      // detail 场景
    options?: Array<{ label, sublabel?, icon? }>,          // dropdown 场景
    durationInSeconds: number  // 默认 3
  }>,
  accentColor: string,       // 默认 '#3B82F6'
  bgStyle: 'light' | 'warm' | 'cool',
  deviceAngle: number,       // 默认 8(Y轴旋转角度)
  brand?: { name: string, tagline?: string }
}

场景类型

类型视觉效果关键属性
hero手机显示“点击输入”+ 操作按钮—
voice麦克风图标 + 连续涟漪环—
typing逐字符文字显示 + 光标text
cards交错出现的卡片列表(类似餐厅风格)cards[], title
detail筛选标签 + 带价格的项目网格items[], title, subtitle
dropdown玻璃态选项选择器options[], text
endCard手机淡出,品牌居中显示— (使用顶层 brand)

推荐的场景流程

典型的演示流程为:hero → voice → typing → results → detail → typing → dropdown → endCard

时长建议:hero 3秒, voice 2秒, typing 每命令3秒, cards/detail 4秒, dropdown 3秒, endCard 2秒。

视觉风格规则

请阅读 references/apple-aesthetic.md 获取完整的样式指南。

关键规则:

  • 背景: 柔和的 3D 球体,带有径向渐变、高光反射和投影
  • 手机: 类似 iPhone 风格,带有金属边框渐变、灵动岛、侧边按钮、主屏幕指示器、玻璃反射叠加层和接地阴影
  • 颜色: 单色白/灰 + 单个可配置强调色
  • 动画: 全部通过 useCurrentFrame() + spring({damping: 200}) 实现。零 CSS 动画。

动画模式

请阅读 references/animation-patterns.md 获取弹簧配置、时间公式和缓动模式。

关键模式:

  • 入场: spring({ frame: sceneFrame, fps, config: { damping: 200 } }) → 透明度 + 垂直位移
  • 交错: 每个项目延迟 i * 6 帧
  • 浮动: Math.sin(globalFrame / 45) * 12 实现轻微漂移
  • 打字: Math.floor((sceneFrame - delay) * 0.55) 个字符逐步显示
  • 涟漪: 通过取模实现连续:(frame + ring * offset) % cycleDuration
  • 交叉淡入淡出: 场景重叠,-transitionFrames 到 0 淡入,dur - transitionFrames 到 dur 淡出

改进待办事项

当前状态:良好,但非完美。已知不足:

  1. Three.js 背景球体 — CSS 径向渐变球体最多达到 7/10 效果。使用真正的 @remotion/three 配合适当光照可达到 9/10
  2. 真实图片 — 彩色占位方块 → 通过 <Img> 组件使用 Unsplash/Pexels 食物照片
  3. 可变打字速度 — 常用词更快,空格处略微停顿
  4. 屏幕发光 — 手机屏幕边缘的微弱环境光溢出
  5. 常量优先模式 — 将所有魔法数值提取为文件顶部的具名常量(Remotion 官方推荐)

创建新模板

构建新的产品演示模板时:

  1. 逐帧分析参考视频(以 1 秒间隔提取)
  2. 识别视觉组件: 背景、设备、内容、过渡
  3. 定义 Zod 模式,包含场景类型和可配置属性
  4. 自底向上构建组件: 背景 → 设备框架 → 场景 → 过渡
  5. 每一步进行测试 — 在完整视频渲染前先渲染单帧
  6. 用视觉模型进行质量评估 — 提取帧,评价质量,迭代优化

严格遵守 Remotion 规则:请阅读 skills/remotion-best-practices/ 规则文件。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

astra-operator

Delegate computer-use and browser tasks to OpenAI

design-inspo

Find design inspiration from curated gallery sites. Use when a user needs UI/UX references, design examples, or inspiration for specific components (navbars, CTAs, hero sections, landing pages, etc.), full websites, SaaS products, mobile apps, animations, icons, branding, or design systems. Helps select the right inspiration source and browse examples.

graphrag

Build a GraphRAG pipeline over documents. Use when plain vector search returns chunks without connections, when questions need multi-hop reasoning (

mundane-demos

Demo strategy that leads with mundane real-life utility instead of benchmarks. Use when presenting an AI agent or product to non-technical audiences. Covers picking tasks the viewer did this morning, showing end-to-end completion, and letting speed be the wow factor.

release-notes

Generate polished release notes from git history. Use when cutting a release, before publishing a GitHub release, or when you need a changelog from commits between two tags. Groups changes by type, surfaces breaking changes, and drafts highlights.

repo-security-scan

Scan a repository for high-signal security issues and produce a report. Use when auditing a codebase for leaked secrets or vulnerable dependencies, before a release, or when onboarding an unfamiliar repo. Runs gitleaks secret scanning and osv-scanner dependency checks.

secure-agent-design

Security architecture patterns for personal AI agents that touch real accounts. Use when designing an agent with access to inbox, calendar, finances, or shopping. Covers per-user isolated VMs, pre-action sentinel checks, least-privilege connectors, human approval gates, and single-use payment credentials.

testimonial-launch

Turn user testimonials into launch distribution. Use when launching a product or feature and you want real user proof to carry the announcement instead of marketing copy. Covers soliciting specific testimonials, curating them, and amplifying via quote-posts.

unisone/openclaw-skill-suite

Create Apple-keynote-quality product demo videos with Remotion. Covers glass phone mockups, floating 3D spheres, typing animations, card UIs, ripple effects, and smooth scene transitions. Use when asked to create product demos, app showcase videos, UI walkthrough animations, or

validator-quotes

Earn and deploy third-party validator quotes for a launch. Use when you need credibility beyond your own claims. Covers who to approach, how to get honest reactions, and how to amplify them via quote-posts, based on the founder/CEO validators behind the Muse launch.

相关技能