Liquid toggle switch
Also called: gooey switch
A switch where the color flows across like liquid, with a blob that stretches mid-way before the knob settles. It is a real checkbox, with focus and keyboard support.

When to use it
Settings, preferences, turning features on and off. Use a switch when the change applies immediately; for something that only counts after submitting a form, a plain checkbox is more honest. On a light theme, change --liquido-fundo and --liquido-botao.
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:
<label data-efeito="interruptor-liquido"><input type="checkbox" name="avisos" checked><span>Avisos por e-mail</span></label>
More inputs effects
- Star ratingreview stars
- Expanding search barBusca que se expande
- Glowing inputAI prompt box
- Line draw inputunderline input animation
- Floating label inputCampo com rótulo flutuante
- Tag inputchips input
- Credit card formflip card on CVV
- OTP inputverification code input