{"version":3,"file":"ScrollGradient.CZS-SPLF.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/hKd3UqIIronu7GXKsxz6/13AXE26nikPyjs5aQnPy/ScrollGradient.js"],"sourcesContent":["// Infinite carousel with scroll-triggered 3D image rotation and animated content sections\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useScroll,useTransform}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useRef}from\"react\";/**\n * Scroll-based carousel with 3D rotation effects\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 3000\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollGradient(props){const{animationDuration=60,heroImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Hero Image\"},backgroundColor=\"#000000\",useBackgroundImage=false,backgroundImage={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Background Image\"},rotationStart=90,rotationEnd=0,scrollSensitivity=1,overflow=\"hidden\"}=props;const section2Ref=useRef(null);const{scrollYProgress}=useScroll({target:section2Ref,offset:[\"start end\",\"end start\"]});const rotateX=useTransform(scrollYProgress,[0,scrollSensitivity],[rotationStart,rotationEnd]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:useBackgroundImage?\"transparent\":backgroundColor,backgroundImage:useBackgroundImage?`url(${backgroundImage.src})`:\"none\",backgroundSize:\"cover\",backgroundPosition:\"center\",overflow:overflow,position:\"relative\"},children:/*#__PURE__*/_jsx(\"section\",{ref:section2Ref,style:{minHeight:\"35vh\",width:\"100%\",backgroundColor:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"100vh\",transformOrigin:\"50% 0\",rotateX,backgroundImage:`url(${heroImage.src})`,backgroundSize:\"cover\",backgroundPosition:\"center\"}})})});}addPropertyControls(ScrollGradient,{animationDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:60,min:10,max:120,step:5,unit:\"s\"},heroImage:{type:ControlType.ResponsiveImage,title:\"Hero Image\"},rotationStart:{type:ControlType.Number,title:\"Start Rotation\",defaultValue:90,min:0,max:180,step:1,unit:\"deg\"},rotationEnd:{type:ControlType.Number,title:\"End Rotation\",defaultValue:0,min:-90,max:90,step:1,unit:\"deg\"},scrollSensitivity:{type:ControlType.Number,title:\"Scroll Speed\",defaultValue:1,min:.1,max:4,step:.1},overflow:{type:ControlType.Enum,title:\"Overflow\",defaultValue:\"hidden\",options:[\"visible\",\"hidden\",\"scroll\",\"auto\"],optionTitles:[\"Visible\",\"Hidden\",\"Scroll\",\"Auto\"]},useBackgroundImage:{type:ControlType.Boolean,title:\"Background Type\",defaultValue:false,enabledTitle:\"Image\",disabledTitle:\"Color\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#000000\",hidden:({useBackgroundImage})=>useBackgroundImage},backgroundImage:{type:ControlType.ResponsiveImage,title:\"Background Image\",hidden:({useBackgroundImage})=>!useBackgroundImage}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollGradient\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"3000\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollGradient.map"],"mappings":"yOASG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,oBAAkB,GAAG,YAAU,CAAC,IAAI,sEAAsE,IAAI,aAAa,CAAC,kBAAgB,UAAU,qBAAmB,GAAM,kBAAgB,CAAC,IAAI,oEAAoE,IAAI,mBAAmB,CAAC,gBAAc,GAAG,cAAY,EAAE,oBAAkB,EA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