One-time code input from typo to verified
A 'Check your email' card where a pasted code turns red and shakes on a typo, then re-entering it fills the boxes, they turn green and morph into a 'Verified' pill.
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 input & form animations in React →
Prompt
Build an OTP input in React + Framer Motion.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 300ms, 40ms
- Scale
- 0.8
- 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 one-time code input from typo to verified 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: 300ms, 40ms. Scale: 0.8. 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 input & form animations →
Checkout that reads frustration from the cursorInput
A reel of polished SwiftUI micro-interactionsMicrointeraction
Feedforward AI chat that shows what it will assumeInput
AI voice input with a living glowInput
Buttons that light up before you clickButton
Invoice that you sign by handInput
Split bill that rebalances as people joinMicrointeraction
OTP input where digits roll into placeInput