{"version":3,"file":"GradientLoop.CrTmimrx.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_DcxuU94H","GradientLoop","stops","colors","gradient","i","duration","init_GradientLoop"],"sources":["https:/framerusercontent.com/modules/oZmchoC7HU1NyTtXveyd/4q1Owpo7luAjnwHdveB1/GradientLoop.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * GradientLoop — seamless left-to-right color-fade loop via CSS.\n *\n * Paints the gradient twice side by side on a strip twice the component's\n * width, then slides the strip left by half its width. The gradient wraps by\n * appending color[0] at the end, so the end of the slide matches the start —\n * zero visible seam. A transform animation runs on the compositor, so there's\n * no per-frame JavaScript.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GradientLoop({colors=[\"#0084FF\",\"#CDFF00\",\"#FF4F00\",\"#FF006E\"],duration=4,borderRadius=\"100px\"}){// Build a gradient that wraps: colors + [colors[0]] so end == start\nconst stops=[...colors,colors[0]];const gradient=`linear-gradient(90deg, ${stops.map((c,i)=>`${c} ${i/(stops.length-1)*100}%`).join(\", \")})`;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes cy-gradient-loop {\n                    from { transform: translateX(0); }\n                    to { transform: translateX(-50%); }\n                }\n                @media (prefers-reduced-motion: reduce) {\n                    .cy-gradient-loop { animation: none !important; }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"cy-gradient-loop\",style:{width:\"200%\",height:\"100%\",backgroundImage:gradient,// Each tile is exactly the component's width\nbackgroundSize:\"50% 100%\",backgroundRepeat:\"repeat-x\",animation:`cy-gradient-loop ${duration}s linear infinite`,willChange:\"transform\"}})]});}GradientLoop.displayName=\"Gradient Loop\";addPropertyControls(GradientLoop,{colors:{type:ControlType.Array,title:\"Colors\",control:{type:ControlType.Color},defaultValue:[\"#0084FF\",\"#CDFF00\",\"#FF4F00\",\"#FF006E\"]},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:4,min:.5,max:20,step:.5,displayStepper:true},borderRadius:{type:ControlType.String,title:\"Border Radius\",defaultValue:\"100px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientLoop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientLoop.map"],"mappings":"A,mKAWG,SAAwBO,EAAa,CAAC,SAAO,CAAC,UAAU,UAAU,UAAU,SAAS,EAAE,WAAS,EAAE,eAAa,SAAS,CAC3H,IAAMC,EAAM,CAAC,GAAGC,EAAOA,EAAO,EAAE,EAAQC,EAAS,0BAA0BF,EAAM,KAAK,EAAE,IAAI,GAAGN,EAAE,GAAGS,GAAGH,EAAM,OAAO,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,GAAG,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,eAAa,SAAS,QAAQ,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAAS;;;;;;;;aAQjR,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,mBAAmB,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgBE,EACxH,eAAe,WAAW,iBAAiB,WAAW,UAAU,oBAAoBE,EAAS,mBAAmB,WAAW,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAAC,EAAa,YAAY,gBAAgBR,EAAoBG,EAAa,CAAC,OAAO,CAAC,KAAKF,EAAY,MAAM,MAAM,SAAS,QAAQ,CAAC,KAAKA,EAAY,KAAK,EAAE,aAAa,CAAC,UAAU,UAAU,UAAU,SAAS,CAAC,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,eAAe,EAAI,EAAE,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,OAAO,CAAC,CAAC,C"}