Update button that shows progress inside itself

A small 'Update' pill starts downloading in place: a soft blue fill sweeps across behind the label, the text reads 'Updating' and a cancel × slides out beside it.

By withAnimation (@withAnimationUI) · 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 'progress inside the button' interaction in React + Framer Motion on a light #f2f2f2 background.…

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

Build it with

Motion details

Timing
1.2s, 250ms, 1.5s
Spring
stiffness 500, damping 30
Details
Reduced-motion fallback

Keyframes

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

Six keyframes from Update button that shows progress inside itself

Questions

How do I build the update button that shows progress inside itself 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: 1.2s, 250ms, 1.5s. Spring: stiffness 500, damping 30. Details: Reduced-motion fallback.
Who designed this animation?
withAnimation (@withAnimationUI) shared it on X. Kites Motion links back to the original post.

Similar animations

More button animations →