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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Casa BlocoArchitecture
More inputs effects
- Star ratingreview stars
- Expanding search barBusca que se expande
- Glowing inputAI prompt box
- Line draw inputunderline input animation
- Tag inputchips input
- Credit card formflip card on CVV
- OTP inputverification code input
- Liquid toggle switchgooey switch