{"version":3,"file":"RotatingImage.DCDXOOh6.mjs","names":[],"sources":["https:/framerusercontent.com/modules/WYU9M2fEDhkL2bU51VYO/d1ZuMBnmgDnF7fWIvnLh/RotatingImage.js"],"sourcesContent":["// Component that constantly rotates with an attachable image\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RotatingImage(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},rotationSpeed,direction}=props;const duration=rotationSpeed;const rotationDirection=direction===\"clockwise\"?360:-360;return /*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"100%\",position:\"relative\"},animate:{rotate:rotationDirection},transition:{duration:duration,repeat:Infinity,ease:\"linear\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})});}addPropertyControls(RotatingImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},rotationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:5,min:1,max:20,step:.5,unit:\"s\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"clockwise\",\"counterclockwise\"],optionTitles:[\"Clockwise\",\"Counter-clockwise\"],defaultValue:\"clockwise\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RotatingImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RotatingImage.map"],"mappings":"yMAIG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,gBAAc,aAAW,EAAY,EAAS,EAAoB,EAAkB,IAAY,YAAY,IAAI,KAAK,OAAoB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAiB,EAAE,WAAW,CAAU,WAAS,OAAO,IAAS,KAAK,QAAQ,EAAE,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,IAAI,EAAM,IAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,iBAH9hB,IAAkC,IAAoD,EAGyc,EAAoB,EAAc,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,MAAM,OAAO,EAAE,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,EAAE,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,YAAY,QAAQ,CAAC,YAAY,kBAAkB,EAAE,aAAa,CAAC,YAAY,mBAAmB,EAAE,aAAa,YAAY,wBAAwB,EAAI,CAAC,CAAC"}