# animations

animations directs Claude Code to animate Remotion components with frame hooks instead of broken CSS transitions.

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

## What it does

This instruction guides the assistant when generating visual movement inside Remotion. It forces every animation to rely directly on the `useCurrentFrame()` hook. Timing must be expressed in seconds and scaled by the `fps` value from `useVideoConfig()`.

Standard CSS transitions, raw CSS keyframes, and Tailwind motion utility classes are explicitly banned. They render incorrectly during video compilation, so the rule prevents the agent from outputting them.

## Install

### Claude Code (native platform)

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

### GitHub Copilot

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

### Windsurf (Devin Desktop)

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

### Cline

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

## When to use it
- stop the agent from inserting unrenderable CSS transitions in Remotion
- drive UI property interpolations via `useCurrentFrame()`
- convert animation timing from seconds into frames using `fps`

## Example prompts
- Create a fade-in title card that lasts two seconds.
- Animate this subtitle box moving across the screen during the first three seconds.

## 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
