Beeldraster met diagonale onthulling
A grid of project photos that opens cell by cell when scrolled into view: each photo wipes open diagonally from its corner, with a delay that runs from top left to bottom right. For a portfolio or an overview of finished gardens, renovations or interiors. Clip-path and IntersectionObserver; with reduced motion everything is visible at once.
Tuinen die we dit jaar aanlegden
Scrol omlaag in dit vlak.








How to use it
- Paste the HTML where the scroll effects should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Beeldraster met diagonale onthulling · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="sgr">
<div class="sgr__sc" tabindex="0" aria-label="Scrolvlak met projectfoto's">
<div class="sgr__intro"><h3 class="sgr__h">Tuinen die we dit jaar aanlegden</h3><p class="sgr__p">Scrol omlaag in dit vlak.</p></div>
<div class="sgr__grid">
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-1.webp" alt="Border met siergrassen in herfstkleuren" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-2.webp" alt="Heidetuin voor een vrijstaand huis" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-3.webp" alt="Bloemenweide bij zonsondergang" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-5.webp" alt="Stadstuin met klinkers en plantenbak" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-6.webp" alt="Voortuin met bloeiende vaste planten" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hovenier-r3-4.webp" alt="Berijpte grassen in de winter" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hotel-5.webp" alt="Fietspad langs een sloot in de polder" loading="lazy"></figure>
<figure class="sgr__c"><img src="https://neddev.com/lab-media/site-hotel-1.webp" alt="Strandhuisjes in de duinen" loading="lazy"></figure>
</div>
<div class="sgr__eind"><button class="sgr__opn" type="button">Opnieuw afspelen</button></div>
</div>
</div>
</div>/* Beeldraster met diagonale onthulling · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.sgr{position:absolute;inset:0;background:#f4f3f1;font-family:'Switzer',system-ui,sans-serif;color:#0a0a0a}
.sgr__sc{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sgr__sc:focus-visible{outline:2px solid #F5480F;outline-offset:-2px}
.sgr__intro{height:88%;display:flex;flex-direction:column;justify-content:center;padding:0 7%}
.sgr__h{margin:0;font-size:clamp(18px,4.4vw,26px);line-height:1.15;font-weight:600;letter-spacing:-.02em;max-width:16em}
.sgr__p{margin:8px 0 0;font-size:13px;color:#6b6862}
.sgr__grid{display:grid;grid-template-columns:1.25fr 1fr .85fr 1.1fr;gap:6px;padding:0 6px}
.sgr__c{margin:0;aspect-ratio:4/5;overflow:hidden;border-radius:4px;background:#e6e3de;clip-path:polygon(0 0,0 0,0 0);transition:clip-path .8s cubic-bezier(.65,0,.25,1) var(--sgr-d,0s)}
.sgr__c img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.25);transition:transform 1.1s cubic-bezier(.2,.7,.2,1) var(--sgr-d,0s)}
.sgr.is-open .sgr__c{clip-path:polygon(0 0,200% 0,0 200%)}
.sgr.is-open .sgr__c img{transform:scale(1)}
.sgr__eind{display:flex;justify-content:center;padding:14px 0 18px}
.sgr__opn{border:1px solid #0a0a0a;background:#0a0a0a;color:#fff;border-radius:4px;padding:8px 14px;font:500 13px 'Switzer',system-ui,sans-serif;cursor:pointer}
.sgr__opn:hover{background:#F5480F;border-color:#F5480F}.sgr__opn:focus-visible{outline:2px solid #F5480F;outline-offset:2px}
@media (max-width:640px){.sgr__grid{grid-template-columns:1.2fr 1fr}}
@media (prefers-reduced-motion:reduce){.sgr__c{clip-path:none;transition:none}.sgr__c img{transform:none;transition:none}}// Beeldraster met diagonale onthulling · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie
// root = het element waarin de HTML staat
function init(root){
const box = root.querySelector('.sgr'); if (!box) return;
const sc = box.querySelector('.sgr__sc'), grid = box.querySelector('.sgr__grid'), cellen = [...box.querySelectorAll('.sgr__c')];
const vertraging = () => {
const kol = getComputedStyle(grid).gridTemplateColumns.split(' ').length || 4;
cellen.forEach((c, i) => c.style.setProperty('--sgr-d', (((i % kol) + Math.floor(i / kol)) * 0.09).toFixed(2) + 's'));
};
vertraging(); addEventListener('resize', vertraging);
if (!('IntersectionObserver' in window)) { box.classList.add('is-open'); return; }
const io = new IntersectionObserver(es => { if (es[0].isIntersecting) box.classList.add('is-open'); }, { root: sc, threshold: 0, rootMargin: '0px 0px -30% 0px' });
io.observe(grid);
box.querySelector('.sgr__opn').addEventListener('click', () => {
box.classList.remove('is-open'); sc.scrollTo({ top: 0 });
io.unobserve(grid); setTimeout(() => io.observe(grid), 400);
});
}
init(document.querySelector('.jouw-container'));
More scroll effects
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 →