vibran

Cookie consent banner

Also called: preferences card

A discreet card in the corner that doesn't cover the site. It has three exits: accept all, keep only the necessary, or customize, which unfolds the categories with switches. The choice is saved and the notice doesn't come back.

Preview of Cookie consent banner running live
Copy the promptAdjust colors and speed

When to use it

On any site that uses analytics or ads and has to ask for consent (LGPD, GDPR). It sits in the corner on purpose: covering the whole site annoys visitors and hurts conversion. Write the categories to match what actually runs on your site. Use data-lembrar="nao" only for demos, and leave a link with data-cookies-abrir in the footer so people can change their mind. It stores the choice but doesn't switch scripts on or off: listen for the efeito:cookies event for that.

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="aviso-cookies" hidden>
  <h3>Cookies neste site</h3>
  <p>Usamos cookies para o site funcionar e para entender as visitas.</p>
  <div data-categoria="analiticos" data-titulo="Medição de visitas">Conta quantas pessoas entram.</div>
  <div data-categoria="marketing" data-titulo="Anúncios">Mostra anúncios nossos em outros sites.</div>
</div>
<a href="#" data-cookies-abrir>Preferências de cookies</a>

More modals effects

All 15 modals effects →