Skip to main content
rule CX Codex

press-release-spring — Claude Code rule: what it does, how to install

press-release-spring calculates tactile button animation with linear scaling on tap, GSAP spring bounce on release, and glowing visual cues. Useful when polishing UI interactions.

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/press-release-spring.md
Open on GitHub

What press-release-spring does

This rule formats button press motion using GSAP timelines. The interaction splits into two steps. First comes a direct linear compression where the button scales down and drops its shadow. Second comes a spring bounce powered by back.out, creating a slight overshoot before stabilizing.

Visual layers accompany the movement. A burst ring expands behind the button while ambient glow tints the background. To keep the action visible on 1080p displays, button dimensions must occupy at least 3% to 5% of the total canvas space.

Tweens will snap abruptly if the start scale of the release does not match the end scale of the press. Running this code requires loading GSAP. The file includes configurations for subtle clicks, heavy hero actions, and checkmark transitions.

What it helps with

  • animate tactile button presses with GSAP bounce dynamics
  • sync shadow reduction with an expanding burst layer
  • scale button dimensions properly for 1080p canvas displays
  • build confirm button states that switch colors on release

Example prompts for the agent

  • Generate a tactile button animation with press-release-spring physics
  • Create a dramatic hero button press using back.out bounce and burst glow
  • Set up a confirmation button that turns green and shows a checkmark on release

How to install press-release-spring

Manually: put the files in place

.claude/rules/press-release-spring.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 press-release-spring

How do I install press-release-spring in Claude Code?

Save the rule file to .claude/rules/press-release-spring.md in your project root.

What does press-release-spring do?

It supplies HTML, CSS, and GSAP timeline blueprints for a two-phase button press with spring recovery and glow effects.

What external libraries are needed for this animation?

The timeline relies on GSAP version 3.14.2 or higher loaded via script tag or bundler.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
ai-video-gen ai-video-gen turns a written prompt into a video clip through HeyGen, fal.ai, Kling or Gemini, choosing a gateway for the job. CX Codex +1 ★ 78,316repo stars dynamic-content-sequencing dynamic-content-sequencing computes scene display timing from text length and pacing parameters. It gives longer paragraphs more screen presence without hardcoding frame counts. CX Codex +1 ★ 78,316repo stars website-to-video website-to-video captures a website with headless Chrome and turns its visuals into a HyperFrames video. Use it for a site tour, showcase, or social clip. CX Codex +1 ★ 78,316repo stars asr-keyword-glow asr-keyword-glow — a rule that makes words light up and scale up as they get "spoken", driven by per-word timestamps. For promo clips and narrated videos where you need to pace the emphasis. CX Codex +1 ★ 78,316repo stars card-morph-anchor The card-morph-anchor rule describes a container that changes shape as one scene gives way to another. Use it when the morph itself should carry the transition. CX Codex +1 ★ 78,316repo stars svg-icon-enrichment svg-icon-enrichment — a rule that teaches Claude Code and Codex to animate the inner parts of SVG icons: clock hands, scissor blades, pulsing dots, flowing dashes. For micro-animation without swapping the icons themselves. CX Codex +1 ★ 78,316repo stars physics-press-reaction physics-press-reaction synchronizes cursor and element compression in GSAP using shared spring scaling. Controls approach trajectory, simultaneous press down, and bouncy release. CX Codex +1 ★ 78,316repo stars camera-cursor-tracking The camera-cursor-tracking rule keeps a growing text element in view with a two-stage virtual camera. Use it for search fields, animated URLs, and similar scenes. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open