Back to Dictionary
Action Feedback
●○○Ready to Use

Scale on Press

A simpler, non-spring version of tactile feedback where an element scales down slightly and instantly when pressed.

Live Demo

What It Is

A simpler, non-spring version of tactile feedback where an element scales down slightly and instantly when pressed.

When to Use

  • Secondary buttons
  • Icon buttons
  • Interfaces where pure CSS is preferred over heavy animation libraries

When NOT to Use

  • Large structural components

Configuration Tips

  • 01Scale down to 0.95 or 0.98 using a fast duration (e.g., 75ms or 100ms)

You've Seen It In

GitHubVercelNotion

Prompt Templates

Copy and paste these prompts into your AI coding assistant.

Make the button shrink slightly when I click it.

Code Example (Tailwind CSS)

export function ScaleOnPressDemo() {}