vibran

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.

Preview of 3D flip modal running live
Copy the promptAdjust colors and speed

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

  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-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

All 15 modals effects →