← Blurr Motion gallery-marquee-scrub-brutalist
Categorie galleries Tier 1 Techniek #16 Deps
StrategieOntwerpMotionGrowthBrandingStrategieOntwerpMotionGrowthBrandingStrategieOntwerpMotionGrowthBranding
1. Mechanisme — kopieer 1-op-1, geen styling-keuzes
// Mechanisme: gallery-marquee-scrub-brutalist
import gsap from 'https://esm.sh/gsap@3.12.5';
// Pas toe op je eigen selector — geen stijlkeuzes hier.
if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return;
let ls=window.scrollY;
window.addEventListener('scroll',()=>{const v=Math.abs(window.scrollY-ls);document.querySelectorAll('.marquee-track').forEach(t=>t.style.animationDuration=Math.max(5,25-v*0.3).toFixed(1)+'s');ls=window.scrollY;},{passive:true});
2. Skeleton — DOM + class-namen, mag herschikken
<!-- Skeleton: gallery-marquee-scrub-brutalist -->
<div class="demo-block">
  <!-- DOM-structuur hier -->
</div>
3. Styling-template — verplicht eigen invulling per merk
/* Styling: gallery-marquee-scrub-brutalist */
:root {
  --block-bg: ;
  --block-fg: ;
  --block-accent: ;
}