Rotating on Scroll
Steps lie tilted away and swing upright as they reach the middle of the frame; the step in the middle lights up. For a way of working or a route from first talk to handover.
Inmeten bij u thuis
We nemen maten op en bekijken leidingen en afvoer, gratis en vrijblijvend.
Ontwerp en vaste prijs
Binnen een week een tekening met tegels, sanitair en één totaalbedrag.
Slopen en leidingwerk
Oude badkamer eruit, nieuwe leidingen erin, puin nemen we mee.
Tegelen en afmonteren
Eén tegelzetter van begin tot eind, kitwerk en kranen op dag acht.
Oplevering
Samen lopen we alles na; daarna geldt vijf jaar garantie op het werk.
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.
<!-- Rotating on Scroll · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="ros">
<div class="ros__scroller" tabindex="0" aria-label="Werkwijze badkamerrenovatie, scrol door de stappen">
<ol class="ros__lijst">
<li class="ros__stap"><h3 class="ros__kop">Inmeten bij u thuis</h3><p class="ros__tekst">We nemen maten op en bekijken leidingen en afvoer, gratis en vrijblijvend.</p></li>
<li class="ros__stap"><h3 class="ros__kop">Ontwerp en vaste prijs</h3><p class="ros__tekst">Binnen een week een tekening met tegels, sanitair en één totaalbedrag.</p></li>
<li class="ros__stap"><h3 class="ros__kop">Slopen en leidingwerk</h3><p class="ros__tekst">Oude badkamer eruit, nieuwe leidingen erin, puin nemen we mee.</p></li>
<li class="ros__stap"><h3 class="ros__kop">Tegelen en afmonteren</h3><p class="ros__tekst">Eén tegelzetter van begin tot eind, kitwerk en kranen op dag acht.</p></li>
<li class="ros__stap"><h3 class="ros__kop">Oplevering</h3><p class="ros__tekst">Samen lopen we alles na; daarna geldt vijf jaar garantie op het werk.</p></li>
</ol>
</div>
<p class="ros__hint" aria-hidden="true">Scrol in dit vak</p>
</div>
</div>/* Rotating on Scroll · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.ros{position:relative;width:100%;height:100%;background:#f4f3f1;font-family:Switzer,sans-serif}
.ros__scroller{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9c6c0 transparent}
.ros__scroller:focus-visible{outline:2px solid #F5480F;outline-offset:-2px}
.ros__lijst{list-style:none;margin:0 auto;padding:120px 20px;max-width:440px;perspective:800px}
.ros__stap{--h:0;--a:1;margin:0 0 14px;padding:16px 18px;background:#fff;border-radius:4px;border-left:4px solid #dedbd5;transform:rotateX(calc(var(--h) * 62deg));transform-origin:50% 50%;opacity:var(--a);transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.ros__stap.is-midden{background:#0a0a0a;border-left-color:#F5480F}
.ros__kop{margin:0 0 4px;font-size:18px;font-weight:600;color:#0a0a0a;line-height:1.2}
.ros__tekst{margin:0;font-size:14px;line-height:1.45;color:#55524d}
.ros__stap.is-midden .ros__kop{color:#fff}
.ros__stap.is-midden .ros__tekst{color:rgba(255,255,255,.72)}
.ros__hint{position:absolute;right:16px;bottom:12px;margin:0;font-size:13px;color:#8a867f;pointer-events:none}
@media (max-width:480px){.ros__lijst{padding-left:16px;padding-right:16px}.ros__kop{font-size:16px}.ros__tekst{font-size:13px}}// Rotating on 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 el=root.querySelector('.ros'); if(!el) return;
var sc=el.querySelector('.ros__scroller'), stappen=[].slice.call(el.querySelectorAll('.ros__stap'));
var stil=window.matchMedia('(prefers-reduced-motion: reduce)').matches, bezig=false;
var lijst=el.querySelector('.ros__lijst');
function ruimte(){ var h=stappen[0].offsetHeight||90; lijst.style.paddingTop=lijst.style.paddingBottom=Math.max(40,sc.clientHeight/2-h/2)+'px'; }
function bij(){
bezig=false;
var r=sc.getBoundingClientRect(), midden=r.top+r.height/2, half=r.height/2, best=null, bestD=1e9;
stappen.forEach(function(s){
var b=s.getBoundingClientRect(), d=(b.top+b.height/2-midden)/half;
var h=Math.max(-1,Math.min(1,d)); if(Math.abs(d)<bestD){ bestD=Math.abs(d); best=s; }
if(stil){ s.style.setProperty('--h','0'); s.style.setProperty('--a','1'); }
else { var e=Math.sign(h)*Math.pow(Math.abs(h),1.4); s.style.setProperty('--h',e.toFixed(3)); s.style.setProperty('--a',(1-Math.abs(h)*0.6).toFixed(3)); }
});
stappen.forEach(function(s){ s.classList.toggle('is-midden',s===best&&bestD<0.5); });
}
sc.addEventListener('scroll',function(){ if(!bezig){ bezig=true; requestAnimationFrame(bij); } },{passive:true});
window.addEventListener('resize',function(){ ruimte(); bij(); });
ruimte();
var eerste=stappen[0]; sc.scrollTop=Math.max(0,eerste.offsetTop+eerste.offsetHeight/2-sc.clientHeight/2);
bij();
}
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 →