vibran

Depth modal

Also called: glass dialog with background scale

A frosted-glass dialog rises to the middle of the screen while the whole page recedes: it shrinks, rounds its corners, blurs and darkens as if sinking away. On close it comes back to the front.

Preview of Depth modal running live
Copy the promptAdjust colors and speed

When to use it

For apps and dashboards where a quick form should feel like part of the screen instead of a box stuck on top: scheduling, CRM, finance. Glass needs color or imagery behind it; over a flat page the effect is lost. If only one block should recede, point to it with data-fundo=".pagina"; data-recuo sets how much it shrinks.

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:

<button data-efeito="modal-profundidade" data-abrir="#novo">Novo agendamento</button>
<div id="novo" hidden>
  <h3>Novo agendamento</h3>
  ...
  <button data-fechar>Cancelar</button>
</div>

More modals effects

All 15 modals effects →