vibran

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.

Preview of Liquid toggle switch running live
Copy the promptAdjust colors and speed

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

  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:

<label data-efeito="interruptor-liquido"><input type="checkbox" name="avisos" checked><span>Avisos por e-mail</span></label>

More inputs effects

All 14 inputs effects →