OTP code input with validation feedback

A dark verification card where typed digits pop into four boxes; a wrong code shakes and glows red, the right one collapses into a green check.

By sucodee (@sucodeee) · View original post

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

Prompt

Build a modern OTP input in SwiftUI on a dark background.…

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

Build it with

Motion details

Timing
400ms
Spring
response 0.3, damping 0.6
Scale
0.6
Details
Haptics · Shared-element transition

Keyframes

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

Six keyframes from OTP code input with validation feedback

Questions

How do I build the otp code input with validation feedback 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: 400ms. Spring: response 0.3, damping 0.6. Scale: 0.6. Details: Haptics · Shared-element transition.
Who designed this animation?
sucodee (@sucodeee) shared it on X. Kites Motion links back to the original post.

More from sucodee

All by @sucodeee →