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

Lightbox-galerij New

A photo grid where the clicked image zooms from its own position into a lightbox with caption, counter, arrows, swipe and Esc. For portfolios of garden designers, interior builders and photographers.

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.
<!-- Lightbox-galerij · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="lbx"><div class="lbx__hd"><span>Tuinontwerp Groenewoud · Wassenaar</span><span>6 tuinen</span></div><div class="lbx__grid">
<button class="lbx__th lbx__a0" type="button" data-c="Stadstuin · Utrecht · 42 m2" aria-label="Open foto: Stadstuin Utrecht"></button>
<button class="lbx__th lbx__a1" type="button" data-c="Vijvertuin · Wassenaar · 180 m2" aria-label="Open foto: Vijvertuin Wassenaar"></button>
<button class="lbx__th lbx__a2" type="button" data-c="Terras met pergola · Leiden" aria-label="Open foto: Terras met pergola Leiden"></button>
<button class="lbx__th lbx__a3" type="button" data-c="Borderbeplanting · Oegstgeest" aria-label="Open foto: Borderbeplanting Oegstgeest"></button>
<button class="lbx__th lbx__a4" type="button" data-c="Moestuin in bakken · Voorschoten" aria-label="Open foto: Moestuin Voorschoten"></button>
<button class="lbx__th lbx__a5" type="button" data-c="Daktuin · Den Haag · 64 m2" aria-label="Open foto: Daktuin Den Haag"></button></div>
<div class="lbx__ov" role="dialog" aria-modal="true" aria-label="Fotoweergave"><div class="lbx__stage"><div class="lbx__big"></div></div>
<button class="lbx__nv lbx__nv--p" type="button" aria-label="Vorige foto"><svg viewBox="0 0 16 16" width="14" height="14"><path d="M10 3L5 8l5 5" fill="none" stroke="currentColor" stroke-width="1.8"/></svg></button>
<button class="lbx__nv lbx__nv--n" type="button" aria-label="Volgende foto"><svg viewBox="0 0 16 16" width="14" height="14"><path d="M6 3l5 5-5 5" fill="none" stroke="currentColor" stroke-width="1.8"/></svg></button>
<button class="lbx__x" type="button" aria-label="Sluit"><svg viewBox="0 0 16 16" width="12" height="12"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.8"/></svg></button>
<div class="lbx__bar"><span class="lbx__cap"></span><span class="lbx__n"></span></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 →