{"version":3,"file":"SoftlyMarquee.CMtkunRa.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/8N9IDkprF9NkCxxFzAYN/bjRqsU4KtcyulS8knPDF/SoftlyMarquee.js"],"sourcesContent":["// Marquee.tsx — infinite scrolling strip for Framer\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useRef}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 80\n *///@framerDisableUnlink\nexport default function SoftlyMarquee(props){const{items,gap,speed,reverse,pauseOnHover,fade,itemFont,color,separator,sepColor,style}=props;const list=(items&&items.length?items:[\"Item\"]).map(t=>typeof t===\"string\"?t:t?.text??\"\");const loop=[...list,...list];const ref=useRef(null);// Freeze the scroll animation in static contexts (canvas, export, thumbnail).\nconst isStatic=useIsStaticRenderer();return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",overflow:\"hidden\",WebkitMask:fade?\"linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)\":\"none\",mask:fade?\"linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)\":\"none\",...style},onMouseEnter:()=>pauseOnHover&&ref.current&&(ref.current.style.animationPlayState=\"paused\"),onMouseLeave:()=>ref.current&&(ref.current.style.animationPlayState=\"running\"),children:[/*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"inline-flex\",alignItems:\"center\",gap,whiteSpace:\"nowrap\",willChange:\"transform\",animation:isStatic?\"none\":`mq-scroll ${speed}s linear infinite`,animationDirection:reverse?\"reverse\":\"normal\"},children:loop.map((t,i)=>/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap,...itemFont,color},children:[t,separator?/*#__PURE__*/_jsx(\"span\",{style:{color:sepColor},children:separator}):null]},i))}),/*#__PURE__*/_jsx(\"style\",{children:`@keyframes mq-scroll{to{transform:translateX(-50%)}}`})]});}const itemFontDefault={fontSize:22,fontWeight:600,fontFamily:\"Inter, sans-serif\"};SoftlyMarquee.defaultProps={items:[\"Design\",\"Ship\",\"Repeat\",\"Made in Framer\"],gap:48,speed:18,reverse:false,pauseOnHover:true,fade:true,itemFont:itemFontDefault,color:\"#111111\",separator:\"✦\",sepColor:\"#2f6bff\"};addPropertyControls(SoftlyMarquee,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.String},defaultValue:[\"Design\",\"Ship\",\"Repeat\",\"Made in Framer\"]},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:48,min:0,max:160,unit:\"px\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:18,min:3,max:60,unit:\"s\"},reverse:{type:ControlType.Boolean,title:\"Reverse\",defaultValue:false},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on hover\",defaultValue:true},fade:{type:ControlType.Boolean,title:\"Edge fade\",defaultValue:true},color:{type:ControlType.Color,title:\"Text\",defaultValue:\"#111111\"},itemFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultValue:itemFontDefault},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\"✦\"},sepColor:{type:ControlType.Color,title:\"Separator color\",defaultValue:\"#2f6bff\",description:\"More free & paid components at [Softly Supply](https://softly.supply)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SoftlyMarquee\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"80\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SoftlyMarquee.map"],"mappings":"yLAOA,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,QAAM,UAAQ,eAAa,OAAK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