{"version":3,"file":"LogoSlider.bYVIM1dn.mjs","names":["useRef","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/3idBibyZh5YdkEtwHE5I/z3zkhDMdTymvAVQxIi5H/TextFluxUnveil.js","https:/framerusercontent.com/modules/cYzcFJgPssjoPpFVzR7c/gStP1BwKx7eh8O2xF9X3/LogoSlider.js"],"sourcesContent":["// Text Flux Unveil - Scroll Word Reveal - A scroll-triggered text animation component that reveals text word by word as users scroll\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef,useMemo,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useScroll,useInView}from\"framer-motion\";/**\n * Text Flux Unveil\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TextFluxUnveil(props){const{text=\"Your text will reveal word by word as you scroll down the page\",color=\"#000000\",font,textAlign=\"left\",startFromWord=5,initialOpacity=.2,fadeDelay=0,fadeDuration=.1,fadeEasing=\"linear\",fullRevealDistance=150,accessibilityTag=\"h3\"}=props;const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const isInView=useInView(containerRef,{margin:\"-20% 0px -20% 0px\"});const{scrollY}=useScroll();const[elementTop,setElementTop]=useState(0);const[windowHeight,setWindowHeight]=useState(0);const[scrollProgress,setScrollProgress]=useState(0);// Calculate element position and window height\nuseEffect(()=>{if(!containerRef.current||isStatic)return;const updatePosition=()=>{const rect=containerRef.current?.getBoundingClientRect();if(rect){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;startTransition(()=>{setElementTop(rect.top+scrollTop);setWindowHeight(window.innerHeight);});}};updatePosition();window.addEventListener(\"resize\",updatePosition);return()=>window.removeEventListener(\"resize\",updatePosition);},[isStatic]);// Update scroll progress based on scroll position\nuseEffect(()=>{if(isStatic)return;const unsubscribe=scrollY.on(\"change\",latest=>{const triggerPoint=elementTop-windowHeight;const progress=Math.max(0,Math.min(1,(latest-triggerPoint)/fullRevealDistance));startTransition(()=>setScrollProgress(progress));});return unsubscribe;},[scrollY,elementTop,windowHeight,fullRevealDistance,isStatic]);// Split text into words\nconst words=useMemo(()=>{return text.split(\" \").filter(word=>word.length>0);},[text]);const TagComponent=accessibilityTag;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"sticky\",top:\"20vh\",width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:textAlign===\"center\"?\"center\":textAlign===\"right\"?\"flex-end\":\"flex-start\",padding:\"1rem\",...props.style},children:/*#__PURE__*/_jsx(TagComponent,{style:{textAlign,maxWidth:\"100%\",margin:0,...font,color},role:accessibilityTag.startsWith(\"h\")?\"heading\":undefined,\"aria-level\":accessibilityTag.startsWith(\"h\")?parseInt(accessibilityTag.charAt(1)):undefined,\"aria-live\":\"polite\",\"aria-atomic\":\"false\",children:words.map((word,index)=>{const wordIndex=index+1;const shouldAnimate=wordIndex>=startFromWord;if(!shouldAnimate){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",marginRight:\"0.3em\",opacity:1},children:word},index);}// Calculate when this word should reveal based on scroll progress\nconst wordsToAnimate=words.length-(startFromWord-1);const wordRevealStart=(index-(startFromWord-1))/wordsToAnimate;const wordRevealEnd=(index-(startFromWord-1)+1)/wordsToAnimate;// Calculate smooth opacity transition\nlet wordOpacity=initialOpacity;if(isStatic){wordOpacity=1;}else if(scrollProgress>=wordRevealEnd){wordOpacity=1;}else if(scrollProgress>wordRevealStart){const wordProgress=(scrollProgress-wordRevealStart)/(wordRevealEnd-wordRevealStart);wordOpacity=initialOpacity+(1-initialOpacity)*wordProgress;}return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",marginRight:\"0.3em\",opacity:wordOpacity,transition:`opacity ${fadeDuration}s ${fadeEasing}`},children:word},index);})})});}addPropertyControls(TextFluxUnveil,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Your text will reveal word by word as you scroll down the page\",displayTextArea:true},accessibilityTag:{type:ControlType.Enum,title:\"Accessibility Tag\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Paragraph\",\"Span\"],defaultValue:\"h3\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true},startFromWord:{type:ControlType.Number,title:\"Start From Word\",defaultValue:5,min:1,max:50,step:1,displayStepper:true},initialOpacity:{type:ControlType.Number,title:\"Initial Opacity\",defaultValue:.2,min:0,max:1,step:.1},fadeDelay:{type:ControlType.Number,title:\"Fade Delay\",defaultValue:0,min:0,max:1,step:.05,unit:\"s\"},fadeDuration:{type:ControlType.Number,title:\"Fade Duration\",defaultValue:.1,min:0,max:2,step:.1,unit:\"s\"},fadeEasing:{type:ControlType.Enum,title:\"Fade Easing\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\"],defaultValue:\"linear\"},fullRevealDistance:{type:ControlType.Number,title:\"Full Reveal Distance\",defaultValue:150,min:100,max:1e3,step:50,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextFluxUnveil\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextFluxUnveil.map","// Logo slider met 4 zwart-wit logo's die over de breedte schuiven\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LogoSlider(props){const{logo1={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo 1\"},logo2={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Logo 2\"},logo3={src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Logo 3\"},logo4={src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Logo 4\"},speed=30,gap=60,logoHeight=60,grayscale=100,title=\"Sources\",titleFont,titleColor=\"#000000\"}=props;const logos=[logo1,logo2,logo3,logo4];return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"20px\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",color:titleColor,...titleFont},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",flex:1,overflow:\"hidden\",display:\"flex\",alignItems:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:`${gap}px`,alignItems:\"center\",width:\"100%\",justifyContent:\"space-between\"},children:logos.map((logo,index)=>/*#__PURE__*/_jsx(\"img\",{src:logo.src,alt:logo.alt,style:{height:`${logoHeight}px`,width:\"auto\",objectFit:\"contain\",filter:`grayscale(${grayscale}%)`,flexShrink:0}},index))})})]});}addPropertyControls(LogoSlider,{title:{type:ControlType.String,title:\"Titel\",defaultValue:\"Sources\"},titleFont:{type:ControlType.Font,title:\"Titel Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},titleColor:{type:ControlType.Color,title:\"Titel Kleur\",defaultValue:\"#000000\"},logo1:{type:ControlType.ResponsiveImage,title:\"Logo 1\"},logo2:{type:ControlType.ResponsiveImage,title:\"Logo 2\"},logo3:{type:ControlType.ResponsiveImage,title:\"Logo 3\"},logo4:{type:ControlType.ResponsiveImage,title:\"Logo 4\"},logoHeight:{type:ControlType.Number,title:\"Logo Hoogte\",defaultValue:60,min:20,max:200,step:5,unit:\"px\"},gap:{type:ControlType.Number,title:\"Afstand\",defaultValue:60,min:20,max:200,step:10,unit:\"px\"},speed:{type:ControlType.Number,title:\"Snelheid\",defaultValue:30,min:5,max:60,step:1,unit:\"s\"},grayscale:{type:ControlType.Number,title:\"Zwart-Wit\",defaultValue:100,min:0,max:100,step:10,unit:\"%\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LogoSlider.map"],"mappings":"sRAMG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,iEAAiE,QAAM,UAAU,OAAK,YAAU,OAAO,gBAAc,EAAE,iBAAe,GAAG,YAAU,EAAE,eAAa,GAAG,aAAW,SAAS,qBAAmB,IAAI,mBAAiB,MAAM,EAAY,EAAaA,EAAO,KAAK,CAAO,EAAS,GAAqB,CAAgB,EAAU,EAAa,CAAC,OAAO,oBAAoB,CAAC,CAAC,GAAK,CAAC,WAAS,GAAW,CAAM,CAAC,EAAW,GAAeC,EAAS,EAAE,CAAM,CAAC,EAAa,GAAiBA,EAAS,EAAE,CAAM,CAAC,EAAe,GAAmBA,EAAS,EAAE,CAC5lB,MAAc,CAAC,GAAG,CAAC,EAAa,SAAS,EAAS,OAAO,IAAM,MAAmB,CAAC,IAAM,EAAK,EAAa,SA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