{"version":3,"file":"SlsHyY2kL.CsOYxMUN.mjs","names":["React.useRef","React.useState","React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/tKiwIcg9lyNzGIYNAsFl/aDMk34DmSe3RAMMdwLSU/ImageParallaxVertical.js","https:/framerusercontent.com/modules/qAq8uPOFJlqZTYfr2kLz/cZGYkiSDcVt3Z813XQQ8/SlsHyY2kL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 300\n */export default function ImageParallaxVertical(props){const{image,parallax=200,...rest}=props;const containerRef=React.useRef(null);const[translateY,setTranslateY]=React.useState(0);const[ready,setReady]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const calculateParallax=()=>{if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();const windowHeight=window.innerHeight;const elementHeight=rect.height;const startPosition=windowHeight-rect.top;const endPosition=-rect.bottom;const totalTravel=windowHeight+elementHeight;let progress=0;if(startPosition>=0&&endPosition<=0){progress=startPosition/totalTravel;}else if(startPosition<0){progress=0;}else if(endPosition>0){progress=1;}setTranslateY(parallax-progress*parallax);setReady(true);};window.addEventListener(\"scroll\",calculateParallax);calculateParallax();return()=>window.removeEventListener(\"scroll\",calculateParallax);},[parallax]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{overflow:\"hidden\",position:\"relative\",backgroundColor:\"#ffffff\",...rest.style},children:image&&ready&&/*#__PURE__*/_jsx(\"img\",{src:image,style:{width:\"100%\",height:`calc(100% + ${parallax}px)`,objectFit:\"cover\",transform:`translateY(${-translateY}px)`},alt:\"Parallax Image\"})});}addPropertyControls(ImageParallaxVertical,{image:{type:ControlType.Image,title:\"Image\"},parallax:{type:ControlType.Number,title:\"Parallax\",defaultValue:200,min:0,max:500,step:10,description:\"Component made by Anton Drukarov\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageParallaxVertical\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"300\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageParallaxVertical.map","// Generated by Framer (3bdc3c5)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import ImageParallaxVertical from\"https://framerusercontent.com/modules/tKiwIcg9lyNzGIYNAsFl/aDMk34DmSe3RAMMdwLSU/ImageParallaxVertical.js\";const ImageParallaxVerticalFonts=getFonts(ImageParallaxVertical);const cycleOrder=[\"AL_HK6dS4\",\"wJenJDt9i\"];const serializationHash=\"framer-sOYNy\";const variantClassNames={AL_HK6dS4:\"framer-v-6tylni\",wJenJDt9i:\"framer-v-g1whn4\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:1.2,ease:[.8,0,.2,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[.6,0,.2,1],type:\"tween\"};const toImageSrc=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value.src;}return typeof value===\"string\"?value:undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Primary:\"AL_HK6dS4\",Start:\"wJenJDt9i\"};const getProps=({height,id,image,imageParallax,width,...props})=>{return{...props,qLf5JtcNQ:imageParallax??props.qLf5JtcNQ??300,sKCVfj5Yz:image??props.sKCVfj5Yz,variant:humanReadableVariantMap[props.variant]??props.variant??\"AL_HK6dS4\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,sKCVfj5Yz,qLf5JtcNQ,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"AL_HK6dS4\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,...addPropertyOverrides({wJenJDt9i:{value:transition2}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-6tylni\",className,classNames),\"data-framer-name\":\"Primary\",layoutDependency:layoutDependency,layoutId:\"AL_HK6dS4\",ref:refBinding,style:{mask:\"linear-gradient(90deg, rgba(0,0,0,1) 100%, rgba(0,0,0,0) 100%) add\",WebkitMask:\"linear-gradient(90deg, rgba(0,0,0,1) 100%, rgba(0,0,0,0) 100%) add\",...style},variants:{wJenJDt9i:{mask:\"linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 0%) add\",WebkitMask:\"linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 0%) add\"}},...addPropertyOverrides({wJenJDt9i:{\"data-framer-name\":\"Start\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-5wuuxs-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"KX7JKMYk6-container\",nodeId:\"KX7JKMYk6\",rendersWithMotion:true,scopeId:\"SlsHyY2kL\",children:/*#__PURE__*/_jsx(ImageParallaxVertical,{height:\"100%\",id:\"KX7JKMYk6\",image:toImageSrc(sKCVfj5Yz),layoutId:\"KX7JKMYk6\",parallax:qLf5JtcNQ,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-sOYNy.framer-1l42sxi, .framer-sOYNy .framer-1l42sxi { display: block; }\",\".framer-sOYNy.framer-6tylni { height: 1000px; overflow: hidden; position: relative; width: 504px; }\",\".framer-sOYNy .framer-5wuuxs-container { bottom: 0px; flex: none; left: 0px; position: absolute; right: 0px; top: 0px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 1000\n * @framerIntrinsicWidth 504\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"wJenJDt9i\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"sKCVfj5Yz\":\"image\",\"qLf5JtcNQ\":\"imageParallax\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerSlsHyY2kL=withCSS(Component,css,\"framer-sOYNy\");export default FramerSlsHyY2kL;FramerSlsHyY2kL.displayName=\"Image Reveal\";FramerSlsHyY2kL.defaultProps={height:1e3,width:504};addPropertyControls(FramerSlsHyY2kL,{variant:{options:[\"AL_HK6dS4\",\"wJenJDt9i\"],optionTitles:[\"Primary\",\"Start\"],title:\"Variant\",type:ControlType.Enum},sKCVfj5Yz:{title:\"Image\",type:ControlType.ResponsiveImage},qLf5JtcNQ:{defaultValue:300,max:500,min:0,step:10,title:\"Image Parallax\",type:ControlType.Number}});addFonts(FramerSlsHyY2kL,[{explicitInter:true,fonts:[]},...ImageParallaxVerticalFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerSlsHyY2kL\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"sKCVfj5Yz\\\":\\\"image\\\",\\\"qLf5JtcNQ\\\":\\\"imageParallax\\\"}\",\"framerIntrinsicHeight\":\"1000\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"504\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"wJenJDt9i\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SlsHyY2kL.map"],"mappings":"+oBAMG,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,QAAM,WAAS,IAAI,GAAG,GAAM,EAAY,EAAaA,EAAa,KAAK,CAAM,CAAC,EAAW,GAAeC,EAAe,EAAE,CAAM,CAAC,EAAM,GAAUA,EAAe,GAAM,CAA+tB,OAA9tB,MAAo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