# trimming

Guides Claude Code on Remotion animation trimming patterns, from cutting intro frames to capping duration and combining delays.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/trimming.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/trimming

## What it does

This rule provides concise implementation patterns for Remotion's `<Sequence>` component. Passing a negative number to the `from` prop shifts playback backwards. The nested component starts mid-animation, skipping early frames, while `useCurrentFrame()` inside the child begins counting directly from that offset instead of frame zero.

To clip the tail end, the rule applies `durationInFrames` so the component unmounts once the frame budget runs out. Handling both an intro skip and a delayed entrance requires nesting sequences: the outer container sets a positive offset for latency, while the inner one applies a negative value. Frame calculations depend on `useVideoConfig()`, so timing breaks whenever fps conversions are omitted.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/trimming.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/trimming.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/trimming.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/trimming.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/trimming.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/trimming.md

## When to use it
- Trim opening frames from a Remotion animation
- Unmount components after a set duration with durationInFrames
- Combine an appearance delay with an intro frame cut
- Offset useCurrentFrame so child components begin partway through

## Example prompts
- Trim the first half second off my animation using Sequence and fps
- Delay this clip by 30 frames while cutting 15 frames from its start
- Stop and unmount the animation after 1.5 seconds of playback

## Similar
- [remotion-best-practices](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-best-practices.md) — skill · 860000 installs
- [remotion-markup](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-markup.md) — skill · 367400 installs
- [countdown-video](https://affpapa.org/en/nevibecode/skills/countdown-video.md) — skill · 3600 installs
- [wrapped-video](https://affpapa.org/en/nevibecode/skills/wrapped-video.md) — skill · 2700 installs
- [remotion-video-toolkit](https://affpapa.org/en/nevibecode/skills/remotion-video-toolkit.md) — skill · 804 installs
- [create-remotion-geist](https://affpapa.org/en/nevibecode/skills/create-remotion-geist.md) — skill · 506 installs

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
