Preloader Tiles
A loading screen counts to one hundred and then slides up in six vertical strips, revealing the hero with its photo. For a brand intro on the homepage; the button replays it, and with reduced motion the hero shows straight away.
Rust in huis, op maat gebouwd
Atelier Linde ontwerpt woonkamers en werkplekken in Utrecht.

How to use it
- Paste the HTML where the hero styles 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.
<!-- Preloader Tiles · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="plt">
<div class="plt__hero">
<div class="plt__tekst">
<h3 class="plt__kop">Rust in huis, op maat gebouwd</h3>
<p class="plt__sub">Atelier Linde ontwerpt woonkamers en werkplekken in Utrecht.</p>
</div>
<div class="plt__foto"><img src="https://neddev.com/lab-media/carousel-basis-1.webp" alt="Lichte woonkamer met haard, boekenkast en eiken vloer"></div>
</div>
<div class="plt__lader" aria-hidden="true">
<div class="plt__stroken"><i class="plt__strook"></i><i class="plt__strook"></i><i class="plt__strook"></i><i class="plt__strook"></i><i class="plt__strook"></i><i class="plt__strook"></i></div>
<span class="plt__teller">0</span>
</div>
<button class="plt__opnieuw" type="button">Opnieuw afspelen</button>
</div>
</div>/* Preloader Tiles · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.plt{position:relative;width:100%;height:100%;min-height:200px;overflow:hidden;background:#f4f3f1;color:#0a0a0a;font-family:'Switzer',sans-serif;container-type:inline-size}
.plt__hero{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1.15fr;align-items:end;gap:clamp(12px,3cqw,32px);padding:clamp(14px,3.5cqw,36px);padding-bottom:clamp(44px,8cqw,64px)}
.plt__tekst{align-self:end}
.plt__kop{margin:0;font-size:clamp(20px,6cqw,64px);font-weight:700;line-height:1;letter-spacing:-.02em}
.plt__sub{margin:.6em 0 0;font-size:clamp(12px,1.8cqw,16px);line-height:1.45;color:#57534f;max-width:34ch}
.plt__foto{position:relative;height:100%;min-height:0;border-radius:4px;overflow:hidden}
.plt__foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.plt__lader{position:absolute;inset:0;z-index:2;pointer-events:none}
.plt__stroken{position:absolute;inset:0;display:flex}
.plt__strook{display:block;flex:1;height:100%;background:#0a0a0a;margin-right:-1px}
.plt__strook:nth-child(even){background:#121110}
.plt__teller{position:absolute;left:clamp(14px,3.5cqw,36px);bottom:clamp(10px,3cqw,28px);font-size:clamp(40px,14cqw,150px);font-weight:700;line-height:.9;letter-spacing:-.03em;color:#f4f3f1;font-variant-numeric:tabular-nums}
.plt__teller::after{content:'%';font-size:.35em;margin-left:.08em;color:#F5480F;vertical-align:top}
.plt--klaar .plt__lader{visibility:hidden}
.plt__opnieuw{position:absolute;right:clamp(10px,2.5cqw,24px);bottom:clamp(8px,2cqw,18px);z-index:3;font:inherit;font-size:13px;font-weight:500;color:#0a0a0a;background:#fff;border:1px solid #d9d5cf;border-radius:4px;padding:6px 10px;cursor:pointer;transition:border-color .15s ease,color .15s ease}
.plt__opnieuw:hover{border-color:#F5480F;color:#F5480F}
.plt__opnieuw:focus-visible{outline:2px solid #F5480F;outline-offset:2px}
.plt__opnieuw:disabled{opacity:0;pointer-events:none}
@container (max-width:480px){.plt__hero{grid-template-columns:1fr 1fr}}// Preloader Tiles · © 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 w = root.querySelector('.plt'); if (!w) return;
var lader = w.querySelector('.plt__lader'), teller = w.querySelector('.plt__teller'), knop = w.querySelector('.plt__opnieuw');
var stroken = [].slice.call(w.querySelectorAll('.plt__strook')), foto = w.querySelector('.plt__foto img');
var rustig = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
var bezig = false;
function reset(){
w.classList.remove('plt--klaar');
stroken.forEach(function(s){ s.getAnimations && s.getAnimations().forEach(function(a){ a.cancel(); }); s.style.transform = ''; });
teller.style.opacity = ''; teller.textContent = '0';
}
function speel(){
if (bezig) return;
if (rustig || !Element.prototype.animate){ w.classList.add('plt--klaar'); return; }
bezig = true; knop.disabled = true; reset();
var t0 = performance.now(), duur = 1100;
function tel(nu){
var p = Math.min(1, (nu - t0) / duur), e = 1 - Math.pow(1 - p, 3);
teller.textContent = Math.round(e * 100);
if (p < 1) return requestAnimationFrame(tel);
teller.animate([{ opacity: 1, transform: 'translateY(0)' }, { opacity: 0, transform: 'translateY(-20px)' }], { duration: 250, fill: 'forwards' });
foto.animate([{ transform: 'scale(1.08)' }, { transform: 'scale(1)' }], { duration: 1000, easing: 'cubic-bezier(.2,.7,.2,1)' });
var laatste;
stroken.forEach(function(s, i){
laatste = s.animate([{ transform: 'translateY(0)' }, { transform: 'translateY(-101%)' }], { duration: 560, delay: 120 + i * 60, easing: 'cubic-bezier(.75,0,.2,1)', fill: 'forwards' });
});
laatste.onfinish = function(){ w.classList.add('plt--klaar'); bezig = false; knop.disabled = false; };
}
requestAnimationFrame(tel);
}
knop.addEventListener('click', speel);
if (rustig){ w.classList.add('plt--klaar'); knop.hidden = true; return; }
if ('IntersectionObserver' in window){
var io = new IntersectionObserver(function(e){ if (e[0].isIntersecting){ io.disconnect(); speel(); } }, { threshold: .35 });
io.observe(w);
} else speel();
}
init(document.querySelector('.jouw-container'));
More hero styles
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 →