ahmedmaknessi/sum-of-parts / .claude/skills/remotion-markup
remotion-markup
VerifiedContent, animation and effects best practices
multi-scene-video.md
View on GitHub# Multi-scene videos
Put each substantial scene in its own component and file.
Register those components as [connected compositions](connected-compositions.md) so each scene has an editable Studio timeline.
Treat the parent timeline as an editable document: Author every scene that
should be edited independently as a separate interactive component,
`<Series.Sequence>`, or `<TransitionSeries.Sequence>` JSX node. Keep its `name` and
`durationInFrames` inline so the node has its own source-editing target.
Programmatic rendering is suitable only when the generated scenes are
intentionally controlled as one source template.
Use `<TransitionSeries>` when the scenes may have transitions.
Install `@remotion/transitions` if it is missing.
Give each sequence an inline `durationInFrames` value so Studio can edit its timing.
Example:
```tsx
// MyVideo.tsx
import {TransitionSeries} from '@remotion/transitions';
import {useVideoConfig} from 'remotion';
import {OpeningScene} from './OpeningScene';
import {FeatureScene} from './FeatureScene';
export const MyVideo = () => {
const {fps} = useVideoConfig();
return (
<TransitionSeries>
<TransitionSeries.Sequence
name="Opening"
durationInFrames={90}
premountFor={fps}
>
<OpeningScene />
</TransitionSeries.Sequence>
<TransitionSeries.Sequence
name="Feature"
durationInFrames={120}
premountFor={fps}
>
<FeatureScene />
</TransitionSeries.Sequence>
</TransitionSeries>
);
};
```
Register the same scene components, plus the parent video, in the root:
```tsx
// Root.tsx
import {Composition, Folder} from 'remotion';
import {OpeningScene} from './OpeningScene';
import {FeatureScene} from './FeatureScene';
import {ChapterElement} from './ChapterElement';
import {MyVideo} from './MyVideo';
export const RemotionRoot = () => (
<>
<Folder name="Elements">
<Composition
id="ChapterElement"
component={ChapterElement}
width={1920}
height={1080}
fps={30}
durationInFrames={60}
/>
</Folder>
<Folder name="Scenes">
<Composition
id="Opening"
component={OpeningScene}
width={1920}
height={1080}
fps={30}
durationInFrames={90}
/>
<Composition
id="Feature"
component={FeatureScene}
width={1920}
height={1080}
fps={30}
durationInFrames={120}
/>
</Folder>
<Composition
id="MyVideo"
component={MyVideo}
width={1920}
height={1080}
fps={30}
durationInFrames={210}
/>
</>
);
```
Keep each scene's standalone metadata and `defaultProps` consistent with how it is used in the main video.
With no transition, this example needs a 210-frame main composition.
If you add a transition, account for its overlap in the main duration; see [transitions](transitions.md).
Use `<Series>` for consecutive scenes that do not need transitions.
For independently placed scenes, prefer components made with `Interactive.withSchema({wrapInSequence: true})` and put `from` and `durationInFrames` directly on each instance.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |