remotion-markup

仓库创建 2026年7月27日最近提交 2 天前SkillHot 收录 2 天前
▸ 精选理由

强调推荐用法(useCurrentFrame、interpolate)帮助保持一致性。

这个 Skill 做什么

关于在 Remotion 使用 React 写标记和动画的指导规范。

讲怎么用 React 在 Remotion 里写标记和驱动动画,给出实战级的编码建议。常用做法是用 useCurrentFrame() 配合 interpolate() 来驱动动画,优先用 interpolate 而不是 spring,必要时用 Easing.bezier() 或 Easing.spring() 调整节奏。适合在写 Remotion 组件或优化帧动画时参考。

▸ 展开 SKILL.md 英文原文

Best practices for writing Remotion React Markup

开发编程RemotionReact标记通用
0
Stars
0
Forks
12
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/melonwer/hearsay/main/.agents/skills/remotion-markup/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/melonwer/hearsay/main/.agents/skills/remotion-markup/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
This is guidance for writing Remotion React Markup.
If this is not relevant, load [Remotion Best Practices](../remotion-best-practices/SKILL.md) instead.

## General rules

Animate properties using `useCurrentFrame()` and `interpolate()`.

Use `interpolate()` over `spring()`.

Use `Easing.bezier()` to customize timing, including jumpy or overshooting motion.
Use `Easing.spring()` if you want spring animations

HTML Elements which make sense to be made interactive in the Studio should use `Interactive`: `<div>` -> `<Interactive.Div>`.  
Set a descriptive `name` prop such as `name="Hero title"` for `Interactive`, `Solid`, `Sequence`.

```tsx
import { useCurrentFrame, Easing, interpolate, Inter
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有