OTP Input
Four code boxes auto-advance; correct codes hop in turn, wrong ones shake the row
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A four-box verification code input: each box takes one digit, gives a small pop and jumps to the next box after input, and pressing Backspace in an empty box goes back and clears the previous one. Once all four are filled it verifies automatically: if correct, each box hops up in turn and fills with color; if wrong, the whole row shakes left and right and the borders switch to a warning style. (JS: each box maxLength=1, inputMode="numeric", focus the next box after input, handle Backspace on keydown; results trigger CSS keyframes by class, with the hop staggered by animation-delay; keep the font size at least 16px on mobile to avoid auto-zoom)
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More form & control effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →