Button that morphs through loading to done
A 'Calendar' row button whose right side morphs from a dash into a moving loader bar and then into a filled check circle, in one fluid shape.
By Nitish Khagwal (@nitishkmrk) · View original post
Originally built with SwiftUI. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More button animations in SwiftUI →
Prompt
Build a morphing state button in SwiftUI (or React + Framer Motion) on a light gray background.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 250ms, 1.2s
- Spring
- response 0.35, dampingFraction 0.75
- Details
- Haptics · Shared-element transition
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 button that morphs through loading to done in SwiftUI?
- 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 SwiftUI and can be rewritten for React, React Native, HTML/CSS.
- What are the motion details?
- Timing: 250ms, 1.2s. Spring: response 0.35, dampingFraction 0.75. Details: Haptics · Shared-element transition.
- Who designed this animation?
- Nitish Khagwal (@nitishkmrk) shared it on X. Kites Motion links back to the original post.
More from Nitish Khagwal
All by @nitishkmrk →Similar animations
More button animations →
Save button that morphs through saving to savedButton
Liquid glass voice recorderButton
Update button that shows progress inside itselfButton
Checkout that reads frustration from the cursorInput
Payment cards with liquid distortion wavesCards
AI 'thinking' orb loadersLoader
A board of 36 polished UI momentsMicrointeraction
Agent status island with pixel iconsLoader