{"version":3,"file":"ScrollGradient.CVbRudg4.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","init_jsx_runtime","c","de","motion","useScroll","useTransform","init_framer_motion_DhsWWWsN","init_framer_BWFVvmND","addPropertyControls","ControlType","ScrollGradient","props","section2Ref","rotateX","scrollYProgress","scrollSensitivity","rotationStart","rotationEnd","useBackgroundImage","backgroundColor","backgroundImage","heroImage","init_ScrollGradient"],"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":"A,0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