vibran

Floating label input

Portuguese name: Campo com rótulo flutuante

A floating label input. The label sits inside the field and moves up and shrinks when the user clicks or starts typing, instead of vanishing like a placeholder.

Preview of Floating label input running live
Copy the promptAdjust colors and speed

When to use it

Good for any form: contact, signup, checkout, booking. It saves space because the label lives inside the field and stays visible after typing starts. Always keep a real label linked to the input, and set --flutuante-cor to the brand accent and --flutuante-erro for invalid fields.

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

Sites that use this effect

More inputs effects

All 14 inputs effects →