← Blurr Motion testimonial-shader-bg-quiet
Categorie testimonials Tier 2 Techniek #34 Deps gsap
"Motion geeft onze brand een dimensie die statisch nooit kan."
1. Mechanisme — kopieer 1-op-1, geen styling-keuzes
// Mechanisme: testimonial-shader-bg-quiet
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;
const U_TIME_SCALE=0.5, BASE_DUR=8, FADE_DUR=1.6, FADE_EASE='power1.out';
const bg=document.querySelector('.shader-bg');if(bg){gsap.from(bg,{autoAlpha:0,duration:FADE_DUR,ease:FADE_EASE});gsap.to(bg,{backgroundPosition:'200% 200%',duration:BASE_DUR/U_TIME_SCALE,ease:'none',repeat:-1,yoyo:true});}
2. Skeleton — DOM + class-namen, mag herschikken
<!-- Skeleton: testimonial-shader-bg-quiet -->
<div class="demo-block">
  <!-- DOM-structuur hier -->
</div>
3. Styling-template — verplicht eigen invulling per merk
/* Styling: testimonial-shader-bg-quiet */
:root {
  --block-bg: ;
  --block-fg: ;
  --block-accent: ;
}