Save button that morphs through saving to saved
A soft gray 'Save' pill turns black, shows a spinner badge while saving, flips to a check with 'Saved', then quietly resets.
By Yanis Lebzar (@dev_ya) · 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 an animated save button in React + Motion (motion.dev) on a pale #eef1f8 background.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 200ms, 0.8s, 1.2s, 1.5s
- Spring
- stiffness 500, damping 25
- Details
- Reduced-motion fallback
Keyframes
Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Questions
- How do I build the save button that morphs through saving to saved 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, 0.8s, 1.2s, 1.5s. Spring: stiffness 500, damping 25. Details: Reduced-motion fallback.
- Who designed this animation?
- Yanis Lebzar (@dev_ya) shared it on X. Kites Motion links back to the original post.
More from Yanis Lebzar
All by @dev_ya →Similar animations
More button animations →
Browser tab whose liquid corners detach as you dragMicrointeraction
A reel of polished SwiftUI micro-interactionsMicrointeraction
Liquid glass voice recorderButton
Context menu that pops out of a dots buttonMenu
Dynamic Island pill that morphs between statesMorph
Floating action button that fans out Receive, Send and SwapButton
Typing bubble that turns into a liked messageMicrointeraction
Button that morphs through loading to doneButton