nudge-curve — Claude Code rule: what it does, how to install
nudge-curve is a Claude Code rule that specifies a three-phase group slide animation to reveal content or shift layouts.
GPL-3.0 ★ 171 updated 2026-11-17
.claude/rules/nudge-curve.mdWhat nudge-curve does
The rule structures a slow-fast-slow slide for compound groups such as card stacks or text rows. Single easing transitions like power4.inOut stop with a harsh jolt. To avoid this, motion chains three separate tweens: a power3.in ramp, a linear travel burst, and a power4.out tail.
The tail must take at least triple the time of the opening ramp to prevent an abrupt landing. New content displays during the middle phase, letting the swift linear motion hide its visual appearance.
What it helps with
- animate grouped elements without harsh deceleration at the end
- mask incoming content behind a swift movement burst
- chain three distinct tweens instead of relying on a single ease
- balance distance and timing ratios for horizontal or vertical shifts
Example prompts for the agent
- Slide the card stack to the left using the nudge-curve pattern to make room
- Chain three tweens to move this word list smoothly without a hard stop
How to install nudge-curve
Manually: put the files in place
.claude/rules/nudge-curve.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/nudge-curve.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/nudge-curve.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/nudge-curve.mdManually: put the files in place
.clinerules/nudge-curve.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about nudge-curve
How to install nudge-curve in Claude Code?
Add the rule file directly to your project at .claude/rules/nudge-curve.md.
What does nudge-curve do?
It establishes a three-phase slide pattern pairing ramp-in, burst, and tail tweens to reposition layout groups.
Why avoid a single ease like power4.inOut for this slide?
A single built-in ease smacks abruptly at the finish. The rule splits motion into three segments to keep the tail duration at least triple the ramp-in.