{"version":3,"file":"ParallaxImageFrame.DXQcNF-P.mjs","names":["React.forwardRef","useRef","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","te","_e","J","init_jsx_runtime","ce","de","motion","init_framer_motion_DhsWWWsN","init_framer_CN96F41L","RenderTarget","ControlType","useIsStaticRenderer","withCSS","cx","mask","SVG","getProps","Icon","init_InRxSi6pV","rest","props","animated","restProps","className","style","ParallaxImageFrame","containerRef","offset","setOffset","isStatic","inView","setInView","checkInView","rect","windowHeight","isInView","handleScroll","scrollY","frameHeight","focalY","image","parallax","init_ParallaxImageFrame","addPropertyControls"],"sources":["https:/framerusercontent.com/modules/bHKEoyfFHndZDm6TIyD1/t8i1ptjxa8RFONW72S9Y/InRxSi6pV.js","https:/framerusercontent.com/modules/ezxyWTxbOpeoSqOcG3vp/dA4s02vmL1jGTle9fDPU/ParallaxImageFrame.js"],"sourcesContent":["// Generated by Framer (14b65b1)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.img,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"img\",{...rest,ref:ref});});const getProps=({height,id,width,...props})=>{return{...props};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,alt:\"\",className:cx(\"framer-JiLNx\",className),layoutId:layoutId,ref:ref,src:'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 1920 1941\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 1940.52 C 0 1940.52 212.549 1898.626 578.5 1890.578 C 869.412 1884.181 1200.957 1940.52 1480 1940.52 C 1759.043 1940.52 1920 1890.578 1920 1890.578 L 1920 0 L 0 0 Z\" fill=\"rgb(255, 255, 255)\" height=\"1940.5197921820882px\" id=\"k7AXiBbW4\" width=\"1920px\"/></svg>',style:{...style}});});const css=[`.framer-JiLNx { -webkit-mask: ${mask}; aspect-ratio: 0.9891808346213292; display: block; mask: ${mask}; user-select: none; width: 1920px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 1920\n * @framerIntrinsicHeight 1941\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Vector\",\"color\":{\"type\":\"static\",\"value\":\"rgb(255, 255, 255)\"},\"set\":{\"localId\":\"vectorSet/mIYy6KLRL\",\"id\":\"mIYy6KLRL\",\"moduleId\":\"w8zC2c4p6nRfq1heMsJA\"}}\n */const Icon=withCSS(Component,css,\"framer-JiLNx\");Icon.displayName=\"Vector\";export default Icon;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1920\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Vector\\\",\\\"color\\\":{\\\"type\\\":\\\"static\\\",\\\"value\\\":\\\"rgb(255, 255, 255)\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/mIYy6KLRL\\\",\\\"id\\\":\\\"mIYy6KLRL\\\",\\\"moduleId\\\":\\\"w8zC2c4p6nRfq1heMsJA\\\"}}\",\"framerIntrinsicHeight\":\"1941\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Parallax Image Frame with 90% scroll speed effect\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";/**\n * ParallaxImageFrame\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */function ParallaxImageFrame(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},borderRadius,shadow,style}=props;const containerRef=useRef(null);const[offset,setOffset]=useState(0);const isStatic=useIsStaticRenderer();const[inView,setInView]=useState(false);useEffect(()=>{if(isStatic||RenderTarget.current()===RenderTarget.thumbnail)return;function checkInView(){if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();const windowHeight=window.innerHeight||document.documentElement.clientHeight;const isInView=rect.bottom>0&&rect.top<windowHeight;startTransition(()=>setInView(isInView));}window.addEventListener(\"scroll\",checkInView,{passive:true});window.addEventListener(\"resize\",checkInView);checkInView();return()=>{window.removeEventListener(\"scroll\",checkInView);window.removeEventListener(\"resize\",checkInView);};},[isStatic]);useEffect(()=>{if(isStatic||RenderTarget.current()===RenderTarget.thumbnail)return;if(!inView)return;function handleScroll(){if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();const windowHeight=window.innerHeight||document.documentElement.clientHeight;if(rect.bottom<0||rect.top>windowHeight)return;const scrollY=window.scrollY||window.pageYOffset;const frameTop=rect.top+scrollY;const frameHeight=rect.height;// Calculate the focal point in the frame (center of frame for now)\n// Instead, use the focal point from the image if available\nlet focalY=.5;if(image.focalPoint&&typeof image.focalPoint.y===\"number\"){focalY=image.focalPoint.y;}// The Y position in the viewport where the focal point is\nconst focalPointInFrame=rect.top+focalY*frameHeight;// The offset is how far the focal point is from the center of the viewport\nconst viewportCenter=windowHeight/2;const delta=focalPointInFrame-viewportCenter;// Allow negative or >1 parallaxSpeed for reverse/fast effect\nconst parallax=-delta*(1-props.parallaxSpeed);setOffset(parallax);}window.addEventListener(\"scroll\",handleScroll,{passive:true});handleScroll();return()=>window.removeEventListener(\"scroll\",handleScroll);},[isStatic,inView]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius,boxShadow:props.boxShadow,position:\"relative\",background:\"#eee\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(motion.img,{src:image.src,alt:image.alt,style:{width:`${props.zoom*100}%`,height:`${props.zoom*100}%`,objectFit:\"cover\",objectPosition:image.focalPoint&&typeof image.focalPoint.x===\"number\"&&typeof image.focalPoint.y===\"number\"?`${image.focalPoint.x*100}% ${image.focalPoint.y*100}%`:`50% 50%`,display:\"block\"},animate:{y:isStatic?0:offset,scale:props.zoom!==1?props.zoom:1},transition:{type:\"spring\",stiffness:props.motionStiffness,damping:props.motionDamping,ease:props.motionEase},draggable:false})});}addPropertyControls(ParallaxImageFrame,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:64},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",hidden:()=>true},boxShadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0 4px 24px rgba(0,0,0,0.10)\"},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:1,min:1,max:2,step:.01,displayStepper:false},parallaxSpeed:{type:ControlType.Number,title:\"Parallax Speed\",defaultValue:.9,min:-2,max:2,step:.01,displayStepper:false,description:\"Negative reverses direction, >1 increases speed.\"},motionStiffness:{type:ControlType.Number,title:\"Motion Stiffness\",defaultValue:120,min:10,max:500,step:1,displayStepper:true,description:\"Spring stiffness for parallax motion.\"},motionDamping:{type:ControlType.Number,title:\"Motion Damping\",defaultValue:20,min:1,max:100,step:1,displayStepper:true,description:\"Spring damping for parallax motion.\"},motionEase:{type:ControlType.Enum,title:\"Animation Curve\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\",\"circIn\",\"circOut\",\"circInOut\",\"backIn\",\"backOut\",\"backInOut\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Circ In\",\"Circ Out\",\"Circ In Out\",\"Back In\",\"Back Out\",\"Back In Out\"],defaultValue:\"easeOut\",description:\"Animation curve for parallax motion.\"}});export default ParallaxImageFrame;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ParallaxImageFrame\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ParallaxImageFrame.map"],"mappings":"A,gVACiJ,EAAK,0BAAgC,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG0B,GAAMC,EAAM,OAAOC,EAAsB,gBAAKf,EAAO,IAAI,CAAC,GAAGa,EAAc,WAAa,KAAG,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,KAAG,CAAC,CAAE,CAAC,EAAQ,GAAU,CAAC,SAAO,KAAG,QAAM,GAAGC,MAAgB,CAAC,GAAGA,CAAK,GAQpc,EAAKR,EARgenB,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,GAAG6B,GAAWN,EAASI,CAAK,EAAE,MAAoB,gBAAKL,EAAI,CAAC,GAAGO,EAAU,IAAI,GAAG,UAAUT,EAAG,eAAeU,CAAS,EAAW,WAAa,MAAI,IAAI,0YAA0Y,MAAM,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAE,CAQ9kC,EAAE,CAR0lC,iCAAiCV,EAAK,4DAA4DA,EAAK,sCAQ/rC,EAAE,cAAc,EAAE,EAAK,YAAY,Q,OCHlE,SAASW,EAAmB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,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