Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/cursor-click-ripple.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
multi-phase-camera multi-phase-camera — a rule for animated web scenes: the camera moves through 2-3 zoom phases (pull-back, focus, push) with continuous micro-drift on top. For when a single linear zoom feels mechanical. CX Codex +1 ★ 78,316repo stars camera Reference rule for ManimGL CameraFrame controls. Helps write 2D pans, zoom sequences, and 3D view changes without syntax errors. CX Codex +1 ★ 78,316repo stars scale-swap-transition The scale-swap-transition rule describes a morph-like swap between two DOM elements using a shrinking exit and a springy entrance. Use it for UI state changes. CX Codex +1 ★ 78,316repo stars context-sensitive-cursor context-sensitive-cursor — a rule for typewriter scenes where the caret takes its colour and height from whichever segment of the line is being typed. CX Codex +1 ★ 78,316repo stars split-tilt-cards The split-tilt-cards rule builds a two-card 3D split layout with opposing tilt. Use it for comparisons, paired features, or before/after scenes. CX Codex +1 ★ 78,316repo stars reactive-displacement reactive-displacement — a transition rule where the incoming card's spring also drives the outgoing card, so the swap reads as a hit. CX Codex +1 ★ 78,316repo stars hyperframes-media hyperframes-media generates voiceovers, background tracks, sound effects, and subtitles for HyperFrames projects using scripts/audio.mjs. CX Codex +1 ★ 78,316repo stars 3d-text-depth-layers The 3d-text-depth-layers rule builds dimensional typography from offset DOM layers. Use it for large hero headings with stacked depth or animated extrusion. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open