cursor-click-ripple — Claude Code rule: what it does, how to install
cursor-click-ripple supplies GSAP timeline specifications for a moving cursor, button press recoil, and expanding ripple waves.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/cursor-click-ripple.mdWhat cursor-click-ripple does
This rule guides the assistant in generating a three-phase UI interaction scene. A mouse cursor moves toward an element, performs a momentary scale depression on both objects, and emits staggered fading rings from the contact point.
The layout pairs simple HTML and CSS positioning with a paused GSAP timeline registered on the window object. All durations, easing equations, and press factors rely on explicit constants. Without loading the GSAP library into the runtime, the animation timeline cannot execute.
What it helps with
- generate a synthetic mouse click sequence in HTML and CSS
- choreograph cursor travel and button depression using GSAP
- time ripple ring expansion to radiate immediately upon element contact
Example prompts for the agent
- Generate a button click scene using the cursor-click-ripple animation specs
- Build a GSAP timeline for a cursor moving to a target element and emitting ripple rings
How to install cursor-click-ripple
Manually: put the files in place
.claude/rules/cursor-click-ripple.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/cursor-click-ripple.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/cursor-click-ripple.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/cursor-click-ripple.mdManually: put the files in place
.clinerules/cursor-click-ripple.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about cursor-click-ripple
How do I install cursor-click-ripple in Claude Code?
Add the rule file to your repository at .claude/rules/cursor-click-ripple.md.
What does cursor-click-ripple do?
It provides standard structure, CSS rules, and a GSAP timeline for simulating realistic cursor clicks.
Which external library does this rule require?
The script depends directly on gsap to run the multi-step timeline.