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.

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
- 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:
<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
- Cookie consent bannerpreferences card
- Toast notificationAviso no canto da tela
- Stacked toast notificationssonner-style
- Hold to delete confirmation dialogConfirmar apagando segurando
- Bottom sheetdraggable drawer
- Image lightbox with zoom from thumbnailGaleria que amplia a partir da miniatura
- Spring drawerphysics side sheet
- Drawerside sheet