{"version":3,"file":"ScrollAnimations.BWu5moO2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tvgQWtCnCXm6TJuj5MhR/UGp3rxBDzX3AeTGjdKeZ/ScrollAnimations.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollAnimations(props){const{distance=22,duration=.45,style}=props;const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;if(!(\"IntersectionObserver\"in window))return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const ease=\"cubic-bezier(0.16, 1, 0.3, 1)\";const vh=window.innerHeight;const sections=[\"Stats\",\"Features\",\"Benchmarks\",\"Articles\",\"Partners\",\"Cta\"];const animated=[];for(const name of sections){const el=document.querySelector(`[data-framer-name=\"${name}\"]`);if(!el)continue;if(el.getBoundingClientRect().top<vh)continue;el.style.opacity=\"0\";el.style.transform=`translateY(${distance}px)`;animated.push(el);}const raf=requestAnimationFrame(()=>{for(const el of animated){el.style.transition=`opacity ${duration}s ${ease}, transform ${duration}s ${ease}`;}});const io=new IntersectionObserver(entries=>{for(const entry of entries){if(!entry.isIntersecting)continue;const el=entry.target;el.style.opacity=\"1\";el.style.transform=\"translateY(0)\";io.unobserve(el);const ms=(duration+.12)*1e3;setTimeout(()=>{el.style.transition=\"\";el.style.transform=\"\";},ms);}},{threshold:.08,rootMargin:\"0px 0px -8% 0px\"});for(const el of animated)io.observe(el);return()=>{cancelAnimationFrame(raf);io.disconnect();for(const el of animated){el.style.opacity=\"1\";el.style.transform=\"\";el.style.transition=\"\";}};},[isStatic,distance,duration]);if(isStatic)return null;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\",opacity:0}});}addPropertyControls(ScrollAnimations,{distance:{type:ControlType.Number,title:\"Distance\",defaultValue:22,min:10,max:80,step:5,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.45,min:.2,max:2,step:.05,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollAnimations\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollAnimations.map"],"mappings":"4LAGG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,WAAS,GAAG,WAAS,IAAI,SAAO,EAAY,EAAS,GAAqB,CAA+yC,OAA9yC,MAAc,CAA8F,GAA1F,GAAiB,IAAS,QAAsB,EAAE,yBAAyB,IAAkB,EAAO,WAAW,mCAAmC,CAAC,QAAQ,OAAO,IAAM,EAAK,gCAAsC,EAAG,EAAO,YAAkB,EAAS,CAAC,QAAQ,WAAW,aAAa,WAAW,WAAW,MAAM,CAAO,EAAS,EAAE,CAAC,IAAI,IAAM,KAAQ,EAAS,CAAC,IAAM,EAAG,SAAS,cAAc,sBAAsB,EAAK,IAAI,CAAK,IAAe,EAAG,uBAAuB,CAAC,IAAI,IAAY,EAAG,MAAM,QAAQ,IAAI,EAAG,MAAM,UAAU,cAAc,EAAS,KAAK,EAAS,KAAK,EAAG,GAAE,IAAM,EAAI,0BAA0B,CAAC,IAAI,IAAM,KAAM,EAAU,EAAG,MAAM,WAAW,WAAW,EAAS,IAAI,EAAK,cAAc,EAAS,IAAI,KAAU,CAAO,EAAG,IAAI,qBAAqB,GAAS,CAAC,IAAI,IAAM,KAAS,EAAQ,CAAC,GAAG,CAAC,EAAM,eAAe,SAAS,IAAM,EAAG,EAAM,OAAO,EAAG,MAAM,QAAQ,IAAI,EAAG,MAAM,UAAU,gBAAgB,EAAG,UA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