# Remotion Rule: Trimming > Remotion skill rule: Trimming patterns for Remotion - cut the beginning or end of animations. Part of the official Remotion Agent Skill for programmatic video in React. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add remotion-dev/skills ``` This rule activates automatically when working with trimming in a Remotion project. --- ## Intro Trimming patterns for Remotion - cut the beginning or end of animations. Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) — the official Agent Skill for programmatic video creation in React. **Best for**: Developers using Remotion for trimming **Works with**: Claude Code, OpenAI Codex, Cursor --- ## Rule Content Use `` with a negative `from` value to trim the start of an animation. ## Trim the Beginning A negative `from` value shifts time backwards, making the animation start partway through: ```tsx import { Sequence, useVideoConfig } from "remotion"; const fps = useVideoConfig(); ; ``` The animation appears 15 frames into its progress - the first 15 frames are trimmed off. Inside ``, `useCurrentFrame()` starts at 15 instead of 0. ## Trim the End Use `durationInFrames` to unmount content after a specified duration: ```tsx ``` The animation plays for 45 frames, then the component unmounts. ## Trim and Delay Nest sequences to both trim the beginning and delay when it appears: ```tsx ``` The inner sequence trims 15 frames from the start, and the outer sequence delays the result by 30 frames. --- ## Source & Thanks > Created by [Remotion](https://github.com/remotion-dev). Licensed under MIT. > [remotion-dev/skills](https://github.com/remotion-dev/skills) — Rule: `trimming` Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) collection on TokRepo. --- Source: https://tokrepo.com/en/workflows/de485e69-f6b1-41e6-8205-5f5de565e400 Author: Skill Factory