Projectlijst met beeld bij de muis
A list of project titles; point at one and a photo opens from a thin slit next to the pointer, trailing the cursor with a slight delay. For a portfolio that leads with names.
How to use it
- Paste the HTML where the components 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.
<!-- Projectlijst met beeld bij de muis · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h6-irc"><ul class="h6-irc__list"><li><a class="h6-irc__row" href="#badkamer" data-i="0"><span class="h6-irc__t">Badkamer Rijswijk</span><span class="h6-irc__y">2025</span></a></li><li><a class="h6-irc__row" href="#keuken" data-i="1"><span class="h6-irc__t">Keuken Leiden</span><span class="h6-irc__y">2025</span></a></li><li><a class="h6-irc__row" href="#uitbouw" data-i="2"><span class="h6-irc__t">Uitbouw Delft</span><span class="h6-irc__y">2024</span></a></li><li><a class="h6-irc__row" href="#trapkast" data-i="3"><span class="h6-irc__t">Trapkast Haarlem</span><span class="h6-irc__y">2024</span></a></li></ul><div class="h6-irc__fig" aria-hidden="true"><img class="h6-irc__img" src="https://neddev.com/lab-media/hero-projectstrip-2.webp" alt="" loading="lazy"><img class="h6-irc__img" src="https://neddev.com/lab-media/hero-projectstrip-4.webp" alt="" loading="lazy"><img class="h6-irc__img" src="https://neddev.com/lab-media/hero-projectstrip-5.webp" alt="" loading="lazy"><img class="h6-irc__img" src="https://neddev.com/lab-media/cases-filter-masonry-3.webp" alt="" loading="lazy"></div></div>
</div>/* Projectlijst met beeld bij de muis · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.h6-irc{position:absolute;inset:0;background:#fff;font-family:'Switzer',sans-serif;display:flex;align-items:center;padding:0 28px;box-sizing:border-box;overflow:hidden}
.h6-irc__list{list-style:none;margin:0;padding:0;width:100%;position:relative;z-index:1}
.h6-irc__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid rgba(10,10,10,.14);color:#0a0a0a;text-decoration:none}
.h6-irc__t{font-size:24px;font-weight:600;letter-spacing:-.015em;transition:transform .2s,color .2s}
.h6-irc__y{font-size:13px;color:#6b6762}
.h6-irc__row.is-on .h6-irc__t{color:#F5480F;transform:translateX(6px)}
.h6-irc__row:focus-visible{outline:2px solid #F5480F;outline-offset:2px}
.h6-irc__fig{position:absolute;left:0;top:0;width:190px;aspect-ratio:4/3;z-index:2;pointer-events:none;overflow:hidden;border-radius:4px;clip-path:inset(50% 0 50% 0);transition:clip-path .38s cubic-bezier(.2,.8,.2,1);will-change:transform}
.h6-irc.is-open .h6-irc__fig{clip-path:inset(0 0 0 0)}
.h6-irc__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.14);transition:opacity .2s,transform .6s cubic-bezier(.2,.8,.2,1)}
.h6-irc__img.is-on{opacity:1;transform:scale(1)}
@media (max-width:480px){.h6-irc{padding:0 18px}.h6-irc__t{font-size:20px}.h6-irc__fig{width:130px}}
@media (prefers-reduced-motion:reduce){.h6-irc__fig,.h6-irc__img,.h6-irc__t{transition:none}}// Projectlijst met beeld bij de muis · © 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('.h6-irc');if(!w)return;
var fig=w.querySelector('.h6-irc__fig'),imgs=w.querySelectorAll('.h6-irc__img'),rows=w.querySelectorAll('.h6-irc__row');
var reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
var tx=0,ty=0,x=0,y=0,raf=0,open=false,lastType='',wasOn=false;
function place(){fig.style.transform='translate3d('+x+'px,'+y+'px,0)';}
function loop(){x+=(tx-x)*.16;y+=(ty-y)*.16;place();
if(Math.abs(tx-x)>.3||Math.abs(ty-y)>.3)raf=requestAnimationFrame(loop);else raf=0;}
function target(cx,cy){var r=w.getBoundingClientRect(),fw=fig.offsetWidth,fh=fig.offsetHeight;
var nx=cx-r.left+24,ny=cy-r.top-fh/2;
if(nx+fw>r.width-8)nx=cx-r.left-fw-24;
tx=Math.max(8,Math.min(r.width-fw-8,nx));ty=Math.max(8,Math.min(r.height-fh-8,ny));
if(!open||reduce){x=tx;y=ty;place();}else if(!raf)raf=requestAnimationFrame(loop);}
function pick(i){rows.forEach(function(r){r.classList.toggle('is-on',r.dataset.i==i);});
imgs.forEach(function(m,k){m.classList.toggle('is-on',k==i);});}
function openAt(i){pick(i);open=true;w.classList.add('is-open');}
function close(){open=false;w.classList.remove('is-open');rows.forEach(function(r){r.classList.remove('is-on');});}
w.addEventListener('pointermove',function(e){if(e.pointerType==='mouse')target(e.clientX,e.clientY);});
rows.forEach(function(row){
row.addEventListener('pointerenter',function(e){if(e.pointerType!=='mouse')return;target(e.clientX,e.clientY);openAt(row.dataset.i);});
row.addEventListener('focus',function(){var r=row.getBoundingClientRect();target(r.right-fig.offsetWidth-40,r.top+r.height/2);openAt(row.dataset.i);});
row.addEventListener('blur',close);
row.addEventListener('pointerdown',function(e){lastType=e.pointerType;wasOn=open&&row.classList.contains('is-on');});
row.addEventListener('click',function(e){e.preventDefault();if(lastType==='mouse')return;var r=row.getBoundingClientRect();target(r.right-fig.offsetWidth-40,r.top+r.height/2);if(wasOn)close();else openAt(row.dataset.i);wasOn=false;});
});
w.querySelector('.h6-irc__list').addEventListener('pointerleave',function(e){if(e.pointerType==='mouse')close();});
}
init(document.querySelector('.jouw-container'));
More components
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 →


