vibran

Spring drawer

Also called: physics side sheet

A side drawer that enters with spring physics: it overshoots slightly, then settles. You can grab and drag it sideways; release it with a flick or past the middle and it closes carrying the speed of your finger.

Preview of Spring drawer running live
Copy the promptAdjust colors and speed

When to use it

For order tracking, notifications, a customer record or the cart. The spring gives the drawer weight, and drag-to-close feels natural on phones. If the site is sober, raise data-amortecimento (e.g. 30) to remove the bounce; data-lado="esquerda" suits a navigation menu.

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="gaveta-mola" data-abrir="#pedido" data-lado="direita">Acompanhar pedido</button>
<aside id="pedido" hidden>
  <h3>Pedido #4821</h3>
  ...
  <button data-fechar>Fechar</button>
</aside>

More modals effects

All 15 modals effects →