# press-release-spring

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.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/hyperframes-animation/rules/press-release-spring.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/press-release-spring

## What it 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.

## Requirements
- Works with: Linear

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/press-release-spring.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/press-release-spring.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/press-release-spring.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/press-release-spring.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/press-release-spring.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/hyperframes-animation/rules/press-release-spring.md

## When to use it
- 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
- 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

## Similar
- [animation-systems](https://affpapa.org/en/nevibecode/skills/animation-systems.md) — skill · 2400 installs
- [frontend-developer](https://affpapa.org/en/nevibecode/skills/dylantarre-frontend-developer.md) — skill · 633 installs
- [theme-crossfade-morph](https://affpapa.org/en/nevibecode/rules/theme-crossfade-morph.md) — rule · ★ 328 repo stars
- [motion](https://affpapa.org/en/nevibecode/skills/motiondivision-motion.md) — skill · 1400 installs
- [uncodixfy](https://affpapa.org/en/nevibecode/skills/uncodixfy.md) — skill · 5700 installs
- [popular-web-designs](https://affpapa.org/en/nevibecode/skills/popular-web-designs.md) — skill · 994 installs

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
