Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/timing.md
Open on GitHub

What 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, using damping: 200 for no bounce.
  • Use interpolate to map frame progress to opacity and clamp both ends of the range.
  • Combine a spring value with interpolate to rotate an element from 0 to 360 degrees after a delay.

How to install timing

Manually: put the files in place

.claude/rules/timing.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set33

The whole set →

Project sponsors

Companies that keep this analytics open