← Blurr Motion pricing-scrub-comparison-minimal
Categorie pricing Tier 1 Techniek #8 Deps gsap

Zonder

Punt A

Punt B

Punt C

Met Blurr

Punt A

Punt B

Punt C

1. Mechanisme — kopieer 1-op-1, geen styling-keuzes
// Mechanisme: pricing-scrub-comparison-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]';
import{ScrollTrigger}from 'https://esm.sh/[email protected]/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return;
const SCRUB=1.2, REVEAL_DUR=0.9, REVEAL_EASE='power2.out';
gsap.fromTo('.scrub-target',{yPercent:15,autoAlpha:0},{yPercent:0,autoAlpha:1,duration:REVEAL_DUR,ease:REVEAL_EASE,scrollTrigger:{trigger:'.scrub-section',start:'top 90%',end:'center center',scrub:SCRUB}});
2. Skeleton — DOM + class-namen, mag herschikken
<!-- Skeleton: pricing-scrub-comparison-minimal -->
<div class="demo-block">
  <!-- DOM-structuur hier -->
</div>
3. Styling-template — verplicht eigen invulling per merk
/* Styling: pricing-scrub-comparison-minimal */
:root {
  --block-bg: ;
  --block-fg: ;
  --block-accent: ;
}