← Blurr Motion nav-sticky-pill-minimal
Categorie navs Tier 1 Techniek #20 Deps gsap
Scroll to test progress/sticky
1. Mechanisme — kopieer 1-op-1, geen styling-keuzes
// Mechanisme: nav-sticky-pill-minimal
import gsap from 'https://esm.sh/[email protected]';
// Pas toe op je eigen selector — geen stijlkeuzes hier.
import gsap from 'https://esm.sh/[email protected]';
if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return;
document.querySelectorAll('.magnetic').forEach((el,i)=>{gsap.from(el,{y:-8,autoAlpha:0,duration:0.9,delay:i*0.06,ease:'power2.out'});el.addEventListener('mouseenter',()=>gsap.to(el,{scale:1.04,duration:0.8,ease:'power2.out'}));el.addEventListener('mouseleave',()=>gsap.to(el,{scale:1,duration:0.9,ease:'power2.out'}));});
2. Skeleton — DOM + class-namen, mag herschikken
<!-- Skeleton: nav-sticky-pill-minimal -->
<div class="demo-block">
  <!-- DOM-structuur hier -->
</div>
3. Styling-template — verplicht eigen invulling per merk
/* Styling: nav-sticky-pill-minimal */
:root {
  --block-bg: ;
  --block-fg: ;
  --block-accent: ;
}