remotion-dev/skills

remotion-markup

用帧驱动动画,按画面任务加载对应素材和效果规则

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

remotion-markup 是什么?

remotion-markup 指导 React 视频画面、动画和效果代码的组织。核心是用 useCurrentFrame 与 interpolate 驱动确定的帧动画,以 fps 计算时间,把素材放在 public 并按具体视频、字幕、转场或效果任务加载附带指南,同时保留 Studio 编辑能力。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 remotion-markup,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 remotion-markup

请在 Codex 的当前工作环境中安装并检查 remotion-markup 这个 Skill。

项目身份:remotion-dev/skills / remotion-markup
来源:https://github.com/remotion-dev/skills/blob/3e20ac75161bc34468845df714701cc9bf6075f4/skills/remotion-markup/SKILL.md
已定位的源文件:skills/remotion-markup/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供 composition、素材和目标画面;需要完整附带文件与实际工程版本,新增 Remotion 模块使用工程对应的 remotion add 路线。

会得到什么

  • 与帧时间轴一致的 React 视频代码、素材引用和实际视觉检查记录。

实际使用顺序

  1. 先读 interactivity 的 timeline-structure,确定编辑单元与时序边界。useCurrentFrame 放在真正需要逐帧变化的最小组件,避免整场景每帧重渲染。
  2. 动画使用内联 interpolate;秒转帧取 useVideoConfig 的 fps,例如两秒使用 2 * fps。不用 CSS transition、CSS animation 或 Tailwind 动画类替代帧动画。
  3. 本地素材存 public,并用 staticFile 引用。按来源使用媒体组件;文字、字幕、多场景、裁剪、蒙版或声音分别加载对应文件,不猜复杂 API。
  4. 需要效果时先确定作用对象并读 effects.md;普通 DOM、Interactive 包装层、Sequence 不直接接受 effects,需要适当的 HtmlInCanvas 包装。
  5. 在 Studio 检查全 composition 与相关独立场景的画面、切点和同步,必要时导出实际帧图辅助检查。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:请用 remotion-markup 给已有 composition 的标题做两秒淡入,标题为“新品发布”。使用当前 fps 与 useCurrentFrame,把 interpolate 写在标题 opacity 上并保留 Studio 编辑;不要添加 CSS animation,也不要覆盖我已有素材改动。
预期结果

预期在不同 fps 下仍保持两秒淡入,并在 Studio 中检查实际效果;本站未执行。

使用前先看这些限制

使用条件与边界

  • 浏览器网页能播放的 CSS 动画不一定能被 Remotion 正确按帧渲染。
  • 视频效果需应用到支持它的组件或包装层,不能把 effects 直接加给所有 DOM 节点。
  • 长入口是资料索引,复杂特效仍需对应文件中的导入、参数和环境前提。
针对这个 Skill 的疑问

常见问题

为什么不用固定的60帧表示两秒?

只有30fps时60帧等于两秒。来源要求从 useVideoConfig 取得实际 fps,让秒与帧的换算随 composition 帧率保持正确。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/remotion-markup/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Content, animation and effects best practices

查看源文件章节 / Source sections
  • 原文:Preserve user changes
  • 原文:General rules
  • 原文:Assets
  • 原文:Media components
  • 原文:Delaying, trimming
  • 原文:Maps
  • 原文:Text highlights and annotations
  • 原文:Multi-scene videos
  • 原文:Connected compositions
  • 原文:Voiceover
  • 原文:Embedding Videos
  • 原文:Embedding Audio
  • 原文:Cropping
  • 原文:Video matting
  • 原文:Transitions
  • 原文:Motion blur
  • 原文:Visual and pixel effects
  • 原文:Available effects
  • 原文:Color correction
  • 原文:3D content
  • 原文:Sound effects
  • 原文:Audio visualization
  • 原文:Maps
  • 原文:Captions
  • 原文:Arabic and right-to-left text
  • 原文:Google Fonts
  • 原文:Local fonts
  • 原文:GIFs
  • 原文:Advanced Images
  • 原文:Lottie animations
原文:正文开头

This is guidance for writing Remotion React Markup. If this is not relevant, load Remotion Best Practices (`remotion-best-practices` skill) instead.

原文:Preserve user changes

Users may make edits in the code outside of the conversation. If you detect a surprising change made in the meanwhile, don't overwrite it, assume it was intentional or ask for confirmation.

原文:General rules

Keep `useCurrentFrame()` in the smallest component that needs it. Extract frame-dependent audio volume, titles, and overlays into their own components instead of subscribing the whole composition or scene; otherwise unrelated descendants re-render on every frame. Preserve the existing frame coordinates when extracting across timing boundaries, and keep editable interpolations inline on the item's props. Inside a composition or scene component, get `fps` from `useVideoConfig()` for all seconds-to-frames calculations, including timing props such as `from`, `trimBefore` and `durationInFrames`. Keeping the expression on the JSX node, such as `trimBefore={4 * fps}`, lets Studio edit the timing and keeps it correct if the composition frame rate changes. Drive animations using `useCurrentFrame()` and `interpolate()`. CSS `transition` or `animation` will not render correctly, they need to refactored. Tailwind animation class will not render correctly, they need to be refactored. Use `Easing.bezier()` and `Easing.spring()` to customize timing. Before choosing the markup hierarchy, read editable timeline structure (`timeline-structure.md` in the `remotion-interactivity` skill). Choose editing units first, then the tracks or shared timing boundaries they need. It includes a complete example with interactive components and their registrations. For source-editable styles, schemas, and keyframes, see Remotion Interactivity (`remotion-interactivity` skill). ```tsx import { useCurrentFrame, useVideoConfig, Easing, interpolate, Interactive } from "remotion"; export const FadeIn = () => { const frame = useCurrentFrame(); const {fps} = useVideoConfig(); return ( <Interactive.Div name="Title" style={{ opacity: interpolate(frame, [0, 2 * fps], [0, 1], { extrapolateRight: "clamp", extrapolateLeft: "clamp", easing: Easing.bezier(0.16, 1, 0.3, 1), }), }} > Hello World! </Interactive.Div> ); }; ``` Keep the `interpolate()` call inline in the `style` prop. Use `scale`, `translate`, `rotate` CSS properties over `transform`.

本段为节选,完整内容见源文件。

原文:Assets

Place assets in the `public/` folder at your project root. Use `staticFile()` to reference files from the `public/` folder.

原文:Media components

Add video and audio using `<Video>` and `<Audio>` from `@remotion/media`. Add images using the `<CanvasImage>` component. Add animated GIFs, APNG, WebP or AVIF images using `<AnimatedImage>`, use `@remotion/gif` if not using Chrome. Use `staticFile()` for files in `public/` or pass a remote URL directly: ```tsx import { Audio, Video } from "@remotion/media"; import { staticFile, CanvasImage, AnimatedImage } from "remotion"; export const MyComposition = () => { return ( <> <Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} /> <Audio src={staticFile("audio.mp3")} /> <CanvasImage src={staticFile("logo.png")} style={{ width: 100, height: 100 }} /> <Video src="https://remotion.media/video.mp4" /> <AnimatedImage src={staticFile('nyancat.gif')} /> </> ); }; ``` If the composition is primarily a timeline of video or audio clips, read [video-editing.md](video-editing.md) before choosing its source structure.

原文:Delaying, trimming

Use [sequencing](sequencing.md) to choose the timing boundary and [timing props](timing-props.md) for the supported props and order of operations.

文件 SHA256:6484fb2c54c3db052674a8725d40e1fcc3b26d144d1b429c1e1f59719db0fe55

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Content, animation and effects best practices

查看历史简介来源

历史收录数据

来源仓库remotion-dev/skills
Skill源路径skills/remotion-markup/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源