Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Morphing Dialog New

A project card that grows into a dialog on click, via the View Transitions API with a FLIP fallback. For case studies and team profiles.

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.
<!-- Morphing Dialog · Bron: Motion Primitives · licentie MIT. Laat deze vermelding staan bij hergebruik. -->
<div class="jouw-container">
<div class="mdl"><button class="mdl__card" aria-haspopup="dialog"><span class="mdl__img"></span><span class="mdl__ct"><b>Kantoor Delft</b><em>Renovatie · 2026</em></span><span class="mdl__plus">+</span></button>
<div class="mdl__dlg" role="dialog" aria-label="Kantoor Delft" hidden><span class="mdl__img mdl__img--l"></span><div class="mdl__body"><span class="mdl__kick">Renovatie · 1.200 m2</span><h4>Kantoor Delft</h4><p>Een jaren-zeventig kantoor aan de Schie, omgebouwd tot energielabel A met behoud van de betonnen gevel. Opgeleverd in 14 weken, terwijl de huurders bleven werken.</p></div><button class="mdl__x" aria-label="Sluiten">&times;</button></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 →