{"version":3,"file":"GrandientText.DbR4jMLc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sJ1dxaq22RThQzpH6Jq4/uqxHt7ZVaW60E9zHptyW/GrandientText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 100\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LiquidWaveText(props){const{text,font,color1,color2,color3,waveSpeed,waveIntensity,isLooping,alignment,baseColor}=props;const backgroundSize=`${200+(100-waveIntensity)}% 100%`;const gradientStyle={backgroundImage:`linear-gradient(\n            90deg, \n            ${baseColor} 0%, \n            ${baseColor} 40%, \n            ${color1} 45%, \n            ${color2} 50%, \n            ${color3} 55%, \n            ${baseColor} 60%, \n            ${baseColor} 100%\n        )`,backgroundSize:backgroundSize,backgroundClip:\"text\",WebkitBackgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\",width:\"100%\",textAlign:alignment,...font};// Animation variants\nconst waveVariants={animate:{backgroundPosition:[\"100% 0%\",\"0% 0%\"],transition:{duration:10/waveSpeed,ease:\"linear\",repeat:isLooping?Infinity:0,repeatType:\"loop\"}},static:{backgroundPosition:\"100% 0%\"}};const isCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:alignment===\"center\"?\"center\":alignment===\"right\"?\"flex-end\":\"flex-start\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.h1,{style:{margin:0,padding:0,...gradientStyle},variants:waveVariants,animate:isCanvas?\"static\":\"animate\",initial:\"static\",children:text})});}addPropertyControls(LiquidWaveText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Liquid Wave\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:64,variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:1.1,textAlign:\"center\"}},baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"#333333\"},color1:{type:ControlType.Color,title:\"Wave Color 1\",defaultValue:\"#0099FF\"},color2:{type:ControlType.Color,title:\"Wave Color 2\",defaultValue:\"#8855FF\"},color3:{type:ControlType.Color,title:\"Wave Color 3\",defaultValue:\"#FF5588\"},waveSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:2,min:.1,max:10,step:.1,displayStepper:true},waveIntensity:{type:ControlType.Number,title:\"Intensity\",defaultValue:50,min:0,max:100,unit:\"%\"},isLooping:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LiquidWaveText\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"100\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GrandientText.map"],"mappings":"gNAMG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,SAAO,SAAO,SAAO,YAAU,gBAAc,YAAU,YAAU,aAAW,EAAY,EAAe,GAAG,KAAK,IAAI,GAAe,QAAc,EAAc,CAAC,gBAAgB;;cAElO,EAAU;cACV,EAAU;cACV,EAAO;cACP,EAAO;cACP,EAAO;cACP,EAAU;cACV,EAAU;WACE,iBAAe,eAAe,OAAO,qBAAqB,OAAO,MAAM,cAAc,oBAAoB,cAAc,MAAM,OAAO,UAAU,EAAU,GAAG,CAAI,EACnL,EAAa,CAAC,QAAQ,CA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