3D flip modal
Also called: swinging dialog
The dialog drops from above in perspective and swings until it settles. Then it follows the mouse with a slight tilt and a light reflection, and a button flips the card to the other side, like sign in and sign up.

When to use it
For login and sign-up on the same card, or any pair of screens that alternate (sign in and sign up, pay and view receipt). The card height is set by the taller face, so nothing jumps on the flip. The tilt only applies to a mouse; on touch the card stays still. Lower data-inclinar (or use 0) on serious sites where the swing may feel like too much.
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-giro-3d" data-abrir="#conta">Entrar</button>
<div id="conta" hidden>
<section data-face><h3>Entrar</h3>... <button data-virar>Criar conta</button></section>
<section data-face><h3>Criar conta</h3>... <button data-virar>Já tenho conta</button></section>
</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
- Depth modalglass dialog with background scale
- Bottom sheetdraggable drawer
- Image lightbox with zoom from thumbnailGaleria que amplia a partir da miniatura
- Spring drawerphysics side sheet