vibran

OTP input

Also called: verification code input

Six boxes for the SMS or email code: focus jumps to the next box as you type, Backspace goes back, the whole code can be pasted, and when it is complete the boxes light up in a wave. A wrong code shakes them.

Preview of OTP input running live
Copy the promptAdjust colors and speed

When to use it

Two-step login, email or phone confirmation, password recovery. Use data-correto only in demos; on a real site listen for the codigo-completo event and check the code on the server. The first box uses autocomplete one-time-code, so phones suggest the SMS by themselves.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="codigo-otp" data-digitos="6" data-rotulo="Código de verificação"></div>

More inputs effects

All 14 inputs effects →