{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/PCsn1n8rAQtrOnee7SCD/gmSH5vtpG1pFR3ZlRKgn/Scroll.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Scroll({images}){const imagesOnScreen=8;const duration=32;const initialOffset=`-${imagesOnScreen}00%`;const renderImage=(item,index)=>{const imageElement=/*#__PURE__*/_jsx(\"img\",{src:item.url,alt:item.alt||`Image ${index+1}`,style:imageStyle});if(item.link){return /*#__PURE__*/_jsx(\"a\",{href:item.link,target:\"_blank\",rel:\"noopener noreferrer\",style:linkStyle,children:imageElement});}return imageElement;};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:images.map((item,index)=>/*#__PURE__*/_jsx(motion.div,{style:imageContainerStyle,animate:{x:[\"800%\",\"0%\",initialOffset],opacity:[0,1,1,0]},transition:{x:{duration:duration,ease:\"linear\",repeat:Infinity,repeatType:\"loop\",delay:(index-imagesOnScreen)*(duration/imagesOnScreen),repeatDelay:duration/imagesOnScreen*(images.length-imagesOnScreen)},opacity:{duration:duration,ease:\"linear\",repeat:Infinity,repeatType:\"loop\",delay:(index-imagesOnScreen)*(duration/imagesOnScreen),repeatDelay:duration/imagesOnScreen*(images.length-imagesOnScreen)}},children:renderImage(item,index)},index))});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",position:\"relative\",backgroundColor:\"white\"};const imageContainerStyle={position:\"absolute\"};const imageStyle={width:\"75px\",height:\"auto\",display:\"block\"};const linkStyle={display:\"block\",textDecoration:\"none\"};// Adding property controls for Framer\naddPropertyControls(Scroll,{images:{type:ControlType.Array,title:\"Images\",propertyControl:{type:ControlType.Object,controls:{url:{type:ControlType.Image,title:\"Image\"},link:{type:ControlType.String,title:\"Link (optional)\",placeholder:\"https://example.com\"},alt:{type:ControlType.String,title:\"Alt Text (optional)\",placeholder:\"Describe the image\"}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Scroll\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll.map"],
  "mappings": "gGAMkB,SAARA,EAAwB,CAAC,OAAAC,CAAM,EAAE,CAA0C,IAAMC,EAAc,QAA8BC,EAAY,CAACC,EAAKC,IAAQ,CAAC,IAAMC,EAA0BC,EAAK,MAAM,CAAC,IAAIH,EAAK,IAAI,IAAIA,EAAK,KAAK,SAASC,EAAM,CAAC,GAAG,MAAMG,CAAU,CAAC,EAAE,OAAGJ,EAAK,KAA0BG,EAAK,IAAI,CAAC,KAAKH,EAAK,KAAK,OAAO,SAAS,IAAI,sBAAsB,MAAMK,EAAU,SAASH,CAAY,CAAC,EAAUA,CAAa,EAAE,OAAoBC,EAAK,MAAM,CAAC,MAAMG,EAAe,SAAST,EAAO,IAAI,CAACG,EAAKC,IAAqBE,EAAKI,EAAO,IAAI,CAAC,MAAMC,EAAoB,QAAQ,CAAC,EAAE,CAAC,OAAO,KAAKV,CAAa,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,SAAS,GAAS,KAAK,SAAS,OAAO,IAAS,WAAW,OAAO,OAAOG,EAAM,IAAiB,GAAS,GAAgB,YAAY,GAAS,GAAgBJ,EAAO,OAAO,EAAe,EAAE,QAAQ,CAAC,SAAS,GAAS,KAAK,SAAS,OAAO,IAAS,WAAW,OAAO,OAAOI,EAAM,IAAiB,GAAS,GAAgB,YAAY,GAAS,GAAgBJ,EAAO,OAAO,EAAe,CAAC,EAAE,SAASE,EAAYC,EAAKC,CAAK,CAAC,EAAEA,CAAK,CAAC,CAAC,CAAC,CAAE,CAE3jC,IAAMK,EAAe,CAAC,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,SAAS,WAAW,gBAAgB,OAAO,EAAQE,EAAoB,CAAC,SAAS,UAAU,EAAQJ,EAAW,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,EAAQC,EAAU,CAAC,QAAQ,QAAQ,eAAe,MAAM,EAClUI,EAAoBb,EAAO,CAAC,OAAO,CAAC,KAAKc,EAAY,MAAM,MAAM,SAAS,gBAAgB,CAAC,KAAKA,EAAY,OAAO,SAAS,CAAC,IAAI,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,YAAY,qBAAqB,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,sBAAsB,YAAY,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC",
  "names": ["Scroll", "images", "initialOffset", "renderImage", "item", "index", "imageElement", "p", "imageStyle", "linkStyle", "containerStyle", "motion", "imageContainerStyle", "addPropertyControls", "ControlType"]
}
