Vertical Cut Reveal
Every letter slides up out of an invisible cut below the line, word by word, once the heading enters view; the subline follows. For the opening heading of a hero or a new section.
Verbouwen zonder verrassingen
Aannemersbedrijf Kok uit Amersfoort werkt met één vaste prijs per vierkante meter.
How to use it
- Paste the HTML where the text animations 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.
<!-- Vertical Cut Reveal · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="vcr">
<h3 class="vcr__kop">Verbouwen zonder verrassingen</h3>
<p class="vcr__sub">Aannemersbedrijf Kok uit Amersfoort werkt met één vaste prijs per vierkante meter.</p>
<button class="vcr__opnieuw" type="button">Opnieuw</button>
</div>
</div>/* Vertical Cut Reveal · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.vcr{position:relative;width:100%;height:100%;background:#fff;display:flex;flex-direction:column;justify-content:center;padding:0 7%;box-sizing:border-box;font-family:Switzer,sans-serif;container-type:inline-size}
.vcr__kop{margin:0 0 14px;font-size:clamp(28px,9cqi,84px);font-weight:700;line-height:1;letter-spacing:-.025em;color:#0a0a0a;max-width:12em}
.vcr__woord{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.vcr__letter{display:inline-block;transform:translateY(112%);transition:transform .62s cubic-bezier(.2,.75,.2,1)}
.vcr.is-zichtbaar .vcr__letter{transform:none}
.vcr.is-terug .vcr__letter,.vcr.is-terug .vcr__sub{transition:none!important}
.vcr__sub{margin:0;font-size:16px;line-height:1.5;color:#55524d;max-width:440px;opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
.vcr.is-zichtbaar .vcr__sub{opacity:1;transform:none;transition-delay:var(--na,.6s)}
.vcr__opnieuw{position:absolute;right:14px;bottom:14px;font:inherit;font-size:14px;font-weight:500;padding:7px 14px;border:1px solid #0a0a0a;border-radius:4px;background:#fff;color:#0a0a0a;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.vcr__opnieuw:hover,.vcr__opnieuw:focus-visible{background:#0a0a0a;color:#fff;outline:none}
@media (max-width:480px){.vcr__sub{font-size:14px}}
@media (prefers-reduced-motion:reduce){.vcr__letter,.vcr__sub{transition:none!important;transform:none!important;opacity:1!important}}// Vertical Cut Reveal · © 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('.vcr'); if(!el) return;
var kop=el.querySelector('.vcr__kop'), tekst=kop.textContent.trim(), n=0;
kop.setAttribute('aria-label',tekst); kop.textContent='';
tekst.split(' ').forEach(function(w,wi){
var ws=document.createElement('span'); ws.className='vcr__woord'; ws.setAttribute('aria-hidden','true');
w.split('').forEach(function(ch){ var l=document.createElement('span'); l.className='vcr__letter'; l.textContent=ch; l.style.transitionDelay=(n*0.026).toFixed(3)+'s'; n++; ws.appendChild(l); });
kop.appendChild(ws); if(wi<tekst.split(' ').length-1) kop.appendChild(document.createTextNode(' '));
});
el.style.setProperty('--na',(n*0.026+0.25).toFixed(2)+'s');
function speel(){ el.classList.add('is-terug'); el.classList.remove('is-zichtbaar'); void el.offsetWidth; el.classList.remove('is-terug'); requestAnimationFrame(function(){ requestAnimationFrame(function(){ el.classList.add('is-zichtbaar'); }); }); }
el.querySelector('.vcr__opnieuw').addEventListener('click',speel);
if('IntersectionObserver' in window){ var io=new IntersectionObserver(function(es){ if(es[0].isIntersecting){ speel(); io.disconnect(); } },{threshold:0.4}); io.observe(el); }
else el.classList.add('is-zichtbaar');
}
init(document.querySelector('.jouw-container'));
More text animations
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 →