{"version":3,"file":"Carousel_3D.CxAZRyf4.mjs","names":[],"sources":["https:/framerusercontent.com/modules/faNkTL8j2NrrV3CIxxt3/cEjKlt1VMvoCc0bTJiyY/Carousel_3D.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function ThreeDGallery(props){const{images,imageWidth,imageHeight,rotateSpeed,pauseOnHover,translateZ,borderRadius,showBackface}=props;// Only use actual images that exist, minimum of 3 for visual appeal\nconst validImages=images.filter(img=>img&&img!==\"\");const totalItems=Math.max(validImages.length,3);const spreadAngle=360/totalItems;const animationPlayState=pauseOnHover?\"running\":\"paused\";return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",perspective:\"1000px\",overflow:\"hidden\",zIndex:0,pointerEvents:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n          @keyframes rotation {\n            from { transform: rotateY(0deg); }\n            to { transform: rotateY(360deg); }\n          }\n\n          .carousel {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            transform-style: preserve-3d;\n            transform-origin: center center;\n            animation: rotation ${rotateSpeed}s infinite linear;\n            animation-play-state: ${animationPlayState};\n          }\n\n          .carousel:hover {\n            animation-play-state: paused;\n          }\n\n          .carousel figure {\n            position: absolute;\n            margin: 0;\n            top: 50%;\n            left: 50%;\n            transform-origin: center center;\n            overflow: hidden;\n            transition: transform 0.5s ease;\n            backface-visibility: ${showBackface?\"visible\":\"hidden\"};\n          }\n\n          .carousel figure img {\n            width: 100%;\n            height: 100%;\n            object-fit: cover;\n            transition: all 0.5s ease;\n            cursor: pointer;\n            backface-visibility: ${showBackface?\"visible\":\"hidden\"};\n          }\n\n          .carousel figure img:hover {\n            transform: scale(1.2);\n          }\n        `}),/*#__PURE__*/_jsx(\"div\",{className:\"carousel\",children:validImages.map((src,index)=>{const angle=index*spreadAngle;const transform=`\n            translate(-50%, -50%)\n            rotateY(${angle}deg)\n            translateZ(${translateZ}px)\n          `;return /*#__PURE__*/_jsx(\"figure\",{style:{width:imageWidth,height:imageHeight,transform,borderRadius},children:/*#__PURE__*/_jsx(\"img\",{src:src,alt:`carousel-${index}`,style:{borderRadius}})},index);})})]});}ThreeDGallery.defaultProps={width:1200,height:400};addPropertyControls(ThreeDGallery,{images:{type:ControlType.Array,propertyControl:{type:ControlType.Image},defaultValue:[\"https://picsum.photos/200/120?random=1\",\"https://picsum.photos/200/120?random=2\",\"https://picsum.photos/200/120?random=3\",\"https://picsum.photos/200/120?random=4\",\"https://picsum.photos/200/120?random=5\",\"https://picsum.photos/200/120?random=6\"]},imageWidth:{type:ControlType.Number,defaultValue:186,min:50,max:300},imageHeight:{type:ControlType.Number,defaultValue:116,min:50,max:300},rotateSpeed:{type:ControlType.Number,defaultValue:20,min:1,max:60,unit:\"s\"},pauseOnHover:{type:ControlType.Boolean,defaultValue:true},translateZ:{type:ControlType.Number,defaultValue:288,min:100,max:800,unit:\"px\"},borderRadius:{type:ControlType.Number,defaultValue:5,min:0,max:50,unit:\"px\"},showBackface:{type:ControlType.Boolean,defaultValue:true,title:\"Show Backface\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThreeDGallery\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Carousel_3D.map"],"mappings":"mKAA6G,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,aAAW,cAAY,cAAY,eAAa,aAAW,eAAa,gBAAc,EACvP,EAAY,EAAO,OAAO,GAAK,GAAK,IAAM,GAAG,CAAuD,EAAY,IAAjD,KAAK,IAAI,EAAY,OAAO,EAAE,CAA2F,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,YAAY,SAAS,SAAS,SAAS,OAAO,EAAE,cAAc,O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