{"version":3,"file":"AnimatedGradientText.VAdKy350.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dX70Jts1LGS5KmR3xNmF/Ymr2fzvhraOtA1D7uEn1/AnimatedGradientText.js"],"sourcesContent":["// Smooth animated gradient text effect with flowing colors\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AnimatedGradientText(props){const{text=\"Animated Text\",font,gradientColors=[\"#FF6B6B\",\"#4ECDC4\",\"#45B7D1\",\"#96CEB4\",\"#FFEAA7\",\"#DDA0DD\"],animationSpeed=3,gradientWidth=200}=props;const isStatic=useIsStaticRenderer();// Create gradient string from colors array\nconst gradientString=gradientColors.join(\", \");const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"inline-block\",...isFixedWidth?{...props?.style}:{width:\"max-content\"}},children:/*#__PURE__*/_jsx(motion.span,{style:{background:`linear-gradient(90deg, ${gradientString}, ${gradientString})`,backgroundSize:`${gradientWidth}% 100%`,backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\",display:\"inline-block\",...font},animate:isStatic?{}:{backgroundPosition:[\"0% 0%\",\"100% 0%\"]},transition:isStatic?{}:{duration:animationSpeed,repeat:Infinity,ease:\"linear\"},children:text})});}addPropertyControls(AnimatedGradientText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Animated Text\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"48px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},gradientColors:{type:ControlType.Array,title:\"Gradient Colors\",control:{type:ControlType.Color},defaultValue:[\"#FF6B6B\",\"#4ECDC4\",\"#45B7D1\",\"#96CEB4\",\"#FFEAA7\",\"#DDA0DD\"],maxCount:10},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:3,min:.5,max:10,step:.1,unit:\"s\"},gradientWidth:{type:ControlType.Number,title:\"Gradient Width\",defaultValue:200,min:100,max:500,step:10,unit:\"%\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedGradientText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedGradientText.map"],"mappings":"qNAIG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,OAAK,gBAAgB,OAAK,iBAAe,CAAC,UAAU,UAAU,UAAU,UAAU,UAAU,UAAU,CAAC,iBAAe,EAAE,gBAAc,KAAK,EAAY,EAAS,GAAqB,CAC5O,EAAe,EAAe,KAAK,KAAK,CAAO,EAAa,GAAO,OAAO,EAAM,MAAM,QAAQ,OAAO,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,QAAQ,eAAe,GAAG,EAAa,CAAC,GAAG,GAAO,MAAM,CAAC,CAAC,MAAM,cAAc,CAAC,CAAC,SAAsB,EAAK,EAAO,KAAK,CAAC,MAAM,CAAC,WAAW,0BAA0B,EAAe,IAAI,EAAe,GAAG,eAAe,GAAG,EAAc,QAAQ,eAAe,OAAO,qBAAqB,OAAO,MAAM,cAAc,QAAQ,eAAe,GAAG,EAAK,CAAC,QAAQ,EAAS,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,UAAU,CAAC,CAAC,WAAW,EAAS,EAAE,CAAC,CAAC,SAAS,EAAe,OAAO,IAAS,KAAK,SAAS,CAAC,SAAS,EAAK,CAAC,CAAC,CAAC,kBAJ9nB,IAAwE,IAAkC,CAIshB,EAAoB,EAAqB,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,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