{"version":3,"file":"ScrollGradient.CdWFKSWu.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/xWPaduz0XQLHuOb31LyW/S9fbKtm17BaUUJH0W35C/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:\"100vh\",width:\"100%\",backgroundColor:\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\"},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\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"3000\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollGradient.map"],"mappings":"2OASG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,oBAAkB,GAAG,YAAU,CAAC,IAAI,sEAAsE,IAAI,YAAY,EAAE,kBAAgB,UAAU,qBAAmB,GAAM,kBAAgB,CAAC,IAAI,oEAAoE,IAAI,kBAAkB,EAAE,gBAAc,GAAG,cAAY,EAAE,oBAAkB,EAAE,WAAS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