Copy button that survives spam clicks

A code-snippet header with pnpm / bun / npm tabs and a copy icon that swaps to a check; spam-clicking stays smooth because each click resets its timer.

By dimi (@dimicx) · View original post

Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More button animations in React →

Prompt

Build a robust copy button for an install snippet in React + Framer Motion.…

Free forever. Available for React, SwiftUI, React Native and HTML/CSS.

Build it with

Motion details

Timing
200ms, 1.5s
Details
Reduced-motion fallback · Shared-element transition · Blur

Keyframes

Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Six keyframes from Copy button that survives spam clicks

Questions

How do I build the copy button that survives spam clicks in React?
Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
What are the motion details?
Timing: 200ms, 1.5s. Details: Reduced-motion fallback · Shared-element transition · Blur.
Who designed this animation?
dimi (@dimicx) shared it on X. Kites Motion links back to the original post.

Similar animations

More button animations →