# timing

This rule covers interpolation, easing, and spring motion in Remotion. Use it when animations need frame-based timing and controlled movement.

- 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/timing.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/timing

## What it 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`.

## Requirements
- Works with: Linear

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/timing.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/timing.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

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

### Windsurf (Devin Desktop)

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

### Cline

**Manually: put the files in place**
- File: `.clinerules/timing.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/timing.md

## When to use it
- 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
- 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.

## Similar
- [timing-calibration](https://affpapa.org/en/nevibecode/skills/timing-calibration.md) — skill · 572 installs
- [universal-timing](https://affpapa.org/en/nevibecode/skills/universal-timing.md) — skill · 546 installs
- [nudge-curve](https://affpapa.org/en/nevibecode/rules/nudge-curve.md) — rule · ★ 171 repo stars
- [animation-principles](https://affpapa.org/en/nevibecode/skills/animation-principles.md) — skill · 6200 installs
- [brand-motion-guidelines](https://affpapa.org/en/nevibecode/skills/brand-motion-guidelines.md) — skill · 1100 installs
- [animation-systems](https://affpapa.org/en/nevibecode/skills/animation-systems.md) — skill · 2400 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
