Skip to content

🎥 Make videos programmatically with React

Remove new skill rules and retain existing example refactors

Jonny Burgerdcfd079b07b2
diff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-interactivity/REFERENCE.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-interactivity/REFERENCE.md
index c6c7e16453..ac4a9287c1 100644
--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-interactivity/REFERENCE.md
+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-interactivity/REFERENCE.md
@@ -59,23 +59,6 @@ Avoid computed names, hardcode them.
</>
```
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` is already interactive and appears in the timeline.
-Give it a `name` and set `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` or `showInTimeline` directly on it.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
## Keep all CSS styles inline
The best way is to just pass a plain object to `style` - no referring to constants, no object spreading, no math.
diff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/sequencing.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/sequencing.md
index 3785181893..83c7ea03b8 100644
--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/sequencing.md
+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/sequencing.md
@@ -5,28 +5,7 @@ metadata:
tags: sequence, series, timing, delay, trim
---
-Use `<Sequence>` to delay when a group or custom component appears in the timeline.
-
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` already supports `name`, `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` and `showInTimeline`.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
-Keep an outer `<Sequence>` when it groups multiple children or supplies layout or props that the child does not support. For example, `<AbsoluteFill>` needs a wrapper for premounting, postmounting or `width` / `height` overrides, while `<Audio>` and `<Video>` from `@remotion/media` support `premountFor` and `postmountFor` directly.
-Timing props on `<AbsoluteFill>` apply to its descendants, including their `useCurrentFrame()` calls.
-
-## Timing custom components
+Use `<Sequence>` to delay when an element appears in the timeline.
```tsx
const Main = () => {
diff --git a/packages/codex-plugin/skills/remotion-interactivity/SKILL.md b/packages/codex-plugin/skills/remotion-interactivity/SKILL.md
index c6c7e16453..ac4a9287c1 100644
--- a/packages/codex-plugin/skills/remotion-interactivity/SKILL.md
+++ b/packages/codex-plugin/skills/remotion-interactivity/SKILL.md
@@ -59,23 +59,6 @@ Avoid computed names, hardcode them.
</>
```
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` is already interactive and appears in the timeline.
-Give it a `name` and set `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` or `showInTimeline` directly on it.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
## Keep all CSS styles inline
The best way is to just pass a plain object to `style` - no referring to constants, no object spreading, no math.
diff --git a/packages/codex-plugin/skills/remotion-markup/sequencing.md b/packages/codex-plugin/skills/remotion-markup/sequencing.md
index 3785181893..83c7ea03b8 100644
--- a/packages/codex-plugin/skills/remotion-markup/sequencing.md
+++ b/packages/codex-plugin/skills/remotion-markup/sequencing.md
@@ -5,28 +5,7 @@ metadata:
tags: sequence, series, timing, delay, trim
---
-Use `<Sequence>` to delay when a group or custom component appears in the timeline.
-
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` already supports `name`, `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` and `showInTimeline`.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
-Keep an outer `<Sequence>` when it groups multiple children or supplies layout or props that the child does not support. For example, `<AbsoluteFill>` needs a wrapper for premounting, postmounting or `width` / `height` overrides, while `<Audio>` and `<Video>` from `@remotion/media` support `premountFor` and `postmountFor` directly.
-Timing props on `<AbsoluteFill>` apply to its descendants, including their `useCurrentFrame()` calls.
-
-## Timing custom components
+Use `<Sequence>` to delay when an element appears in the timeline.
```tsx
const Main = () => {
diff --git a/packages/skills/skills/remotion-interactivity/SKILL.md b/packages/skills/skills/remotion-interactivity/SKILL.md
index 5206ed5ba0..ee73648839 100644
--- a/packages/skills/skills/remotion-interactivity/SKILL.md
+++ b/packages/skills/skills/remotion-interactivity/SKILL.md
@@ -59,23 +59,6 @@ Avoid computed names, hardcode them.
</>
```
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` is already interactive and appears in the timeline.
-Give it a `name` and set `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` or `showInTimeline` directly on it.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
## Keep all CSS styles inline
The best way is to just pass a plain object to `style` - no referring to constants, no object spreading, no math.
diff --git a/packages/skills/skills/remotion-markup/sequencing.md b/packages/skills/skills/remotion-markup/sequencing.md
index 3785181893..83c7ea03b8 100644
--- a/packages/skills/skills/remotion-markup/sequencing.md
+++ b/packages/skills/skills/remotion-markup/sequencing.md
@@ -5,28 +5,7 @@ metadata:
tags: sequence, series, timing, delay, trim
---
-Use `<Sequence>` to delay when a group or custom component appears in the timeline.
-
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` already supports `name`, `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` and `showInTimeline`.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
-Keep an outer `<Sequence>` when it groups multiple children or supplies layout or props that the child does not support. For example, `<AbsoluteFill>` needs a wrapper for premounting, postmounting or `width` / `height` overrides, while `<Audio>` and `<Video>` from `@remotion/media` support `premountFor` and `postmountFor` directly.
-Timing props on `<AbsoluteFill>` apply to its descendants, including their `useCurrentFrame()` calls.
-
-## Timing custom components
+Use `<Sequence>` to delay when an element appears in the timeline.
```tsx
const Main = () => {
diff --git a/packages/template-prompt-to-motion-graphics/src/skills/sequencing.md b/packages/template-prompt-to-motion-graphics/src/skills/sequencing.md
index e8dc240fb2..1543f97f69 100644
--- a/packages/template-prompt-to-motion-graphics/src/skills/sequencing.md
+++ b/packages/template-prompt-to-motion-graphics/src/skills/sequencing.md
@@ -5,25 +5,6 @@ impactDescription: controls when elements appear and enables complex choreograph
tags: sequence, series, timing, delay, choreography
---
-## Set timing and names directly on supported components
-
-`<AbsoluteFill>` already supports `name`, `from`, `durationInFrames`, `trimBefore`, `freeze`, `hidden` and `showInTimeline`.
-The same applies to `<Interactive.Div>`, `<Img>`, `<CanvasImage>`, `<AnimatedImage>`, `<Gif>` and `<Audio>` / `<Video>` from `@remotion/media`.
-Pass supported timing and naming props directly to these components instead of adding an outer `<Sequence>` for a single child.
-The legacy `<Html5Audio>`, `<Html5Video>` and `<OffthreadVideo>` still need a `<Sequence>` for timing.
-
-```tsx title="Standalone background layer"
-<AbsoluteFill
- name="Background"
- from={30}
- durationInFrames={90}
- style={{background: 'linear-gradient(135deg, #0f172a, #312e81)'}}
-/>
-```
-
-Keep an outer `<Sequence>` when it groups multiple children or supplies layout or props that the child does not support. For example, `<AbsoluteFill>` needs a wrapper for premounting, postmounting or `width` / `height` overrides, while `<Audio>` and `<Video>` from `@remotion/media` support `premountFor` and `postmountFor` directly.
-Timing props on `<AbsoluteFill>` apply to its descendants, including their `useCurrentFrame()` calls.
-
## Sequence for Delayed Elements
Use Sequence to delay when an element appears in the timeline.