vibran

Password strength meter

Also called: show hide password

A password field with four bars that fill as the password improves and a line saying what is missing. The eye blinks and its pupil follows the mouse; clicking shows or hides the password as a slash draws across it.

Preview of Password strength meter running live
Copy the promptAdjust colors and speed

When to use it

Signup and password change. The score is estimated in the browser as guidance, not security: the real rule must be enforced on the server. Set data-minimo to the length your system requires and use the senha-forca event to enable or block the submit button.

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="senha-forca"><label for="senha">Senha</label><input id="senha" type="password" autocomplete="new-password"></div>

More inputs effects

All 14 inputs effects →