{"version":3,"file":"Scroll_Zoom.qntdgffP.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/Sh5rqJylqCT47v2HvAMd/u1zcdvxDqL8yLTLJsYrK/AMni3lgTV.js","https:/framerusercontent.com/modules/xgad3PfmMSLHtvBC1Y3w/zzce55ASFp5cDNdzGH9H/Scroll_Zoom.js"],"sourcesContent":["// Generated by Framer (ceb690b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 3 L 16 3 M 16 3 L 13 0 M 16 3 L 13 6 M 8 0 L 11 3 L 8 6\" fill=\"transparent\" height=\"6px\" id=\"s1Vf5lS_X\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--b8xnka, 2)\" stroke=\"var(--4i27ky, black)\" transform=\"translate(4 9)\" width=\"16px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,akr7Ge2dd:width1??props.akr7Ge2dd??2,rm13cFo5g:color??props.rm13cFo5g??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,akr7Ge2dd,rm13cFo5g,...restProps}=getProps(props);const href=useSVGTemplate(\"4173375002\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-WdTuZ\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--4i27ky\":rm13cFo5g,\"--b8xnka\":akr7Ge2dd,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-WdTuZ { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"akr7Ge2dd\":\"width1\",\"rm13cFo5g\":\"color\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Right Two Headed\",\"color\":{\"type\":\"variable\",\"value\":\"4i27ky\"},\"set\":{\"localId\":\"vectorSet/jIUXDd189\",\"id\":\"jIUXDd189\",\"moduleId\":\"mbMVkRB5lkkRzWT95l5L\"}}\n */const Icon=withCSS(Component,css,\"framer-WdTuZ\");Icon.displayName=\"Right Two Headed\";export default Icon;addPropertyControls(Icon,{akr7Ge2dd:{defaultValue:2,displayStepper:true,hidden:false,max:4,min:1,title:\"Width\",type:ControlType.Number},rm13cFo5g:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"akr7Ge2dd\\\":\\\"width1\\\",\\\"rm13cFo5g\\\":\\\"color\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Right Two Headed\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"4i27ky\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/jIUXDd189\\\",\\\"id\\\":\\\"jIUXDd189\\\",\\\"moduleId\\\":\\\"mbMVkRB5lkkRzWT95l5L\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 1600\n */export default function PinnedZoomReveal(props){const{image,scrollHeight,startWidth,startHeight,startRadius,zoomEnd,overlayOpacity,objectPosition}=props;const sectionRef=React.useRef(null);const{scrollYProgress}=useScroll({target:sectionRef,offset:[\"start start\",\"end end\"]});const width=useTransform(scrollYProgress,[0,zoomEnd,1],[`${startWidth}vw`,\"100vw\",\"100vw\"]);const height=useTransform(scrollYProgress,[0,zoomEnd,1],[`${startHeight}vh`,\"100vh\",\"100vh\"]);const borderRadius=useTransform(scrollYProgress,[0,zoomEnd,1],[startRadius,0,0]);const imageScale=useTransform(scrollYProgress,[0,zoomEnd,1],[1,1.05,1.05]);return /*#__PURE__*/_jsx(\"section\",{ref:sectionRef,style:{position:\"relative\",width:\"100%\",height:`${scrollHeight}vh`,background:\"#ffffff\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"sticky\",top:0,width:\"100vw\",height:\"100vh\",overflow:\"hidden\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"#ffffff\"},children:/*#__PURE__*/_jsxs(motion.div,{style:{width,height,borderRadius,overflow:\"hidden\",position:\"relative\",background:\"#0A0D10\"},children:[image&&/*#__PURE__*/_jsx(motion.img,{src:image,alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition,scale:imageScale,display:\"block\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"#000\",opacity:overlayOpacity,pointerEvents:\"none\"}})]})})});}PinnedZoomReveal.defaultProps={scrollHeight:220,startWidth:62,startHeight:42,startRadius:0,zoomEnd:.72,overlayOpacity:0,objectPosition:\"center center\"};addPropertyControls(PinnedZoomReveal,{image:{type:ControlType.Image,title:\"Image\"},scrollHeight:{type:ControlType.Number,title:\"Scroll Height\",min:120,max:400,step:10,defaultValue:220,unit:\"vh\"},startWidth:{type:ControlType.Number,title:\"Start Width\",min:20,max:100,step:1,defaultValue:62,unit:\"vw\"},startHeight:{type:ControlType.Number,title:\"Start Height\",min:20,max:100,step:1,defaultValue:42,unit:\"vh\"},startRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:80,step:1,defaultValue:0},zoomEnd:{type:ControlType.Number,title:\"Zoom End\",min:.3,max:.95,step:.01,defaultValue:.72},overlayOpacity:{type:ControlType.Number,title:\"Overlay\",min:0,max:.6,step:.01,defaultValue:0},objectPosition:{type:ControlType.Enum,title:\"Position\",options:[\"center center\",\"center top\",\"center bottom\",\"left center\",\"right center\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\"],defaultValue:\"center center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PinnedZoomReveal\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1600\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"1200\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll_Zoom.map"],"mappings":"+SAC2C,IAAqF,IAA4B,CAAoC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,SAAS,CAAC,EAAG,CAAO,EAAU,EAAO,OAAO,EAAK,CAAO,EAAiB,GAAY,EAAM,IA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