1. Mechanisme — kopieer 1-op-1, geen styling-keuzes
// Mechanisme: testimonial-stacking-quotes-specimen
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]';
import{ScrollTrigger}from 'https://esm.sh/[email protected]/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return;
const TRANS_DUR=1.6, TRANS_EASE='expo.out', STAGGER=0.09, CYCLE_S=4;
gsap.utils.toArray('.stack-card').forEach((c,i)=>gsap.fromTo(c,{scale:0.94,autoAlpha:0},{scale:1,autoAlpha:1,duration:TRANS_DUR,ease:TRANS_EASE,scrollTrigger:{trigger:c,start:'top 80%',once:true},delay:i*STAGGER}));