spring-pop-entrance — Claude Code rule for entrance animation
The spring-pop-entrance rule describes a smooth scale-in for one element or a staggered group. Use it for interface elements that should arrive on screen without bouncing.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/spring-pop-entrance.mdWhat spring-pop-entrance does
The element starts collapsed and transparent, then grows to its resting size as its opacity increases. For groups, the examples offset each animation by the element’s index. A small upward movement is optional.
The rule includes HTML and CSS examples plus a GSAP timeline built with fromTo. Its explicit start state keeps the element collapsed when the timeline is sought to its beginning. power3.out is the default easing; expo.out gives the arrival a quicker start, while back.out is reserved for deliberately playful motion. The examples load GSAP 3.14.2 from a CDN.
For Claude Code, save the rule at .claude/rules/spring-pop-entrance.md. The sample timeline depends on GSAP, so it won’t run without that library. This rule covers entrances, not press feedback.
What it helps with
- reveal a card with a smooth scale-in
- stagger the entrance of a group of elements
- set an explicit hidden state for timeline seeking
- separate an entrance animation from press feedback
Example prompts for the agent
- Give this card a smooth entrance from zero scale to its resting size.
- Reveal these icons in sequence with a slight upward movement.
- Make the heading start hidden when the timeline is sought to its beginning.
How to install spring-pop-entrance
Manually: put the files in place
.claude/rules/spring-pop-entrance.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/spring-pop-entrance.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/spring-pop-entrance.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/spring-pop-entrance.mdManually: put the files in place
.clinerules/spring-pop-entrance.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about spring-pop-entrance
How do I install spring-pop-entrance in Claude Code?
Save the rule as .claude/rules/spring-pop-entrance.md.
What does spring-pop-entrance do?
It defines a smooth scale-and-opacity entrance for an element or a staggered group. The default motion settles without a bounce.
How is spring-pop-entrance different from press-release-spring?
This rule animates an element arriving on screen from a collapsed state. press-release-spring describes feedback after a press, followed by a spring recovery.