vibran

Line draw input

Also called: underline input animation

An underline-only input. On click the label floats up and a blue line draws itself across the field with a glint running along its tip; with invalid data it draws in red.

Preview of Line draw input running live
Copy the promptAdjust colors and speed

When to use it

Good for short, clean forms: contact, newsletter, booking. On long forms a bare underline gets tiring, and a full bordered floating-label field works better. Pick where the line starts with data-origem and set --linha-cor to the brand blue.

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="campo-linha"><input id="email" type="email"><label for="email">E-mail</label></div>

More inputs effects

All 14 inputs effects →