Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Modal die opploft

A dialog appears with a short springy scale and a fading backdrop; closes with Esc, the close button or a click outside. For confirmations.

How to use it

  1. Paste the HTML where the components should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Modal die opploft · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="ei-mdp"><button class="ei-mdp__open" type="button">Afspraak verzetten</button><div class="ei-mdp__bd" hidden><div class="ei-mdp__d" role="dialog" aria-modal="true" aria-labelledby="ei-mdp-t"><button class="ei-mdp__x" type="button" aria-label="Sluiten">&times;</button><span class="ei-mdp__k">Tandartspraktijk Zuid</span><h4 class="ei-mdp__h" id="ei-mdp-t">Afspraak verzetten?</h4><p class="ei-mdp__p">Je huidige afspraak op dinsdag 14 oktober om 10:30 vervalt.</p><div class="ei-mdp__a"><button class="ei-mdp__btn ei-mdp__btn--ghost" type="button" data-close>Annuleren</button><button class="ei-mdp__btn" type="button" data-close>Ja, verzetten</button></div></div></div></div>
</div>

More components

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →