timing — Claude Code rule for Remotion animation
This rule covers interpolation, easing, and spring motion in Remotion. Use it when animations need frame-based timing and controlled movement.
no license ★ 849 updated 2026-01-24
.claude/rules/timing.mdWhat timing does
The rule explains how to use Remotion’s interpolate and spring functions. Interpolation maps frame ranges to values such as opacity, rotation, or scale. Easing changes the motion curve with options for acceleration, deceleration, combined curves, and cubic bezier timing.
It also covers spring settings through mass, damping, and stiffness, along with delays and durationInFrames. A spring result can drive interpolate, be combined with another spring, or work with useCurrentFrame and useVideoConfig. Without extrapolateLeft and extrapolateRight, interpolate can produce values outside [0, 1], so bounded output requires those options.
Add the rule at .claude/rules/timing.md in a Claude Code project. The examples rely on Remotion functions such as interpolate, spring, Easing, useCurrentFrame, and useVideoConfig.
What it helps with
- map frame progress to a visual value
- keep interpolation inside a chosen range
- tune a spring entrance without bounce
- delay or stretch a spring animation
- turn spring progress into rotation or scale
Example prompts for the agent
- Build a Remotion entrance animation with
spring, usingdamping: 200for no bounce. - Use
interpolateto map frame progress to opacity and clamp both ends of the range. - Combine a spring value with
interpolateto rotate an element from 0 to 360 degrees after a delay.
How to install timing
Manually: put the files in place
.claude/rules/timing.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/timing.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/timing.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/timing.mdManually: put the files in place
.clinerules/timing.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about timing
How do I install timing in Claude Code?
Add the rule file at .claude/rules/timing.md in your Claude Code project.
What does the timing rule do?
It guides Remotion animation timing with interpolate, spring, easing curves, delays, duration settings, and physical spring parameters.
Why can interpolation exceed its target range?
interpolate does not clamp values by default. Set extrapolateLeft: 'clamp' and extrapolateRight: 'clamp' when the output must stay within the range.