Pinned horizontale scroll
The panel stays put while you scroll and the projects slide past from right to left, with a progress line underneath. For a portfolio or a row of finished jobs.
Recent opgeleverd
Scroll 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.
<!-- Pinned horizontale scroll · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="nsf" tabindex="0" aria-label="Recent opgeleverde projecten, scroll om opzij te bladeren">
<div class="nsf__lang">
<div class="nsf__pin">
<div class="nsf__kop"><h3 class="nsf__titel">Recent opgeleverd</h3><p class="nsf__hint">Scroll in dit vlak</p></div>
<div class="nsf__baan">
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/cases-filter-masonry-1.webp" alt="Landelijke keuken met houten fronten" loading="lazy"><figcaption class="nsf__tekst"><strong>Keuken in eiken</strong><span>Haarlem</span></figcaption></figure>
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/cases-filter-masonry-3.webp" alt="Trap met ingebouwde laden" loading="lazy"><figcaption class="nsf__tekst"><strong>Trap met lades</strong><span>Leiden</span></figcaption></figure>
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/cases-filter-masonry-5.webp" alt="Open keuken met kookeiland" loading="lazy"><figcaption class="nsf__tekst"><strong>Kookeiland</strong><span>Amersfoort</span></figcaption></figure>
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/hero-projectstrip-2.webp" alt="Badkamer met inloopdouche" loading="lazy"><figcaption class="nsf__tekst"><strong>Badkamer</strong><span>Delft</span></figcaption></figure>
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/hero-projectstrip-5.webp" alt="Aanbouw met glazen pui aan de tuin" loading="lazy"><figcaption class="nsf__tekst"><strong>Aanbouw met pui</strong><span>Zeist</span></figcaption></figure>
<figure class="nsf__item"><img class="nsf__img" src="https://neddev.com/lab-media/hero-projectstrip-4.webp" alt="Groene keuken met tuindeuren" loading="lazy"><figcaption class="nsf__tekst"><strong>Keuken in groen</strong><span>Gouda</span></figcaption></figure>
</div>
<div class="nsf__lijn"><span class="nsf__balk"></span></div>
</div>
</div>
</div>
</div>/* Pinned horizontale scroll · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.nsf{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;container-type:size;background:#0a0a0a;color:#fff;font-family:'Switzer',sans-serif;scrollbar-width:none;outline:none}
.nsf::-webkit-scrollbar{display:none}
.nsf:focus-visible{box-shadow:inset 0 0 0 2px #F5480F}
.nsf__lang{height:420cqh}
.nsf__pin{position:sticky;top:0;height:100cqh;overflow:hidden;display:flex;flex-direction:column;padding:6cqh 0 6cqh;box-sizing:border-box}
.nsf__kop{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0 5cqw}
.nsf__titel{margin:0;font-weight:600;font-size:clamp(16px,8cqh,44px);letter-spacing:-.02em;line-height:1}
.nsf__hint{margin:0;font-size:13px;color:rgba(255,255,255,.6);transition:opacity .3s}
.nsf__hint.is-weg{opacity:0}
.nsf__baan{position:relative;flex:1;min-height:0;display:flex;gap:2.4cqw;padding:5cqh 5cqw 0;will-change:transform}
.nsf__item{flex:0 0 40cqw;margin:0;display:flex;flex-direction:column;min-height:0}
.nsf__img{flex:1;min-height:0;width:100%;object-fit:cover;border-radius:4px;display:block;background:#222}
.nsf__tekst{display:flex;justify-content:space-between;gap:8px;padding-top:8px;font-size:clamp(12px,4.4cqh,16px)}
.nsf__tekst strong{font-weight:600}
.nsf__tekst span{color:rgba(255,255,255,.6)}
.nsf__lijn{margin:4cqh 5cqw 0;height:2px;background:rgba(255,255,255,.18)}
.nsf__balk{display:block;height:100%;background:#F5480F;transform:scaleX(0);transform-origin:0 50%}
@container (max-width:520px){.nsf__item{flex-basis:68cqw}}// Pinned horizontale scroll · © 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){
var s = root.querySelector('.nsf'); if (!s) return;
var baan = s.querySelector('.nsf__baan'), balk = s.querySelector('.nsf__balk'), hint = s.querySelector('.nsf__hint');
var afstand = 0, wacht = false;
function meet() {
var laatste = baan.lastElementChild; if (!laatste) return;
var padL = parseFloat(getComputedStyle(baan).paddingLeft) || 0;
afstand = Math.max(0, laatste.offsetLeft + laatste.offsetWidth + padL - baan.clientWidth);
teken();
}
function teken() {
wacht = false;
var max = s.scrollHeight - s.clientHeight;
var p = max > 0 ? Math.min(1, Math.max(0, s.scrollTop / max)) : 0;
baan.style.transform = 'translate3d(' + (-p * afstand).toFixed(1) + 'px,0,0)';
balk.style.transform = 'scaleX(' + p.toFixed(4) + ')';
hint.classList.toggle('is-weg', p > 0.03);
}
s.addEventListener('scroll', function () { if (!wacht) { wacht = true; requestAnimationFrame(teken); } }, { passive: true });
if (window.ResizeObserver) new ResizeObserver(meet).observe(s); else window.addEventListener('resize', meet);
baan.querySelectorAll('img').forEach(function (im) { if (!im.complete) im.addEventListener('load', meet); });
meet();
}
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 →