{"version":3,"file":"RippleTextEffect.vmNNMjw2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mB0eZUKrKwgEnK6A47uM/e2U1opmmvcz7Z8sMjxdI/RippleTextEffect.js"],"sourcesContent":["// Ripple text effect component with water ripple animation\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n\n */export default function RippleText(props){const{text,textColor,font,turbulenceFrequency,displacementScale,animationDuration,style}=props;const isStatic=useIsStaticRenderer();// Static fallback\nif(isStatic){return /*#__PURE__*/_jsx(\"p\",{style:{...style,color:textColor,margin:0,maxWidth:\"100%\",whiteSpace:\"normal\",wordBreak:\"break-word\",overflowWrap:\"break-word\",...font},children:text});}// Animated version\nconst filterId=\"water-ripple-filter\";const minFreq=turbulenceFrequency*.4;const maxFreq=turbulenceFrequency;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",display:\"inline-block\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"svg\",{style:{position:\"absolute\",width:0,height:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsxs(\"filter\",{id:filterId,children:[/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:turbulenceFrequency,numOctaves:2,result:\"ripple\",children:/*#__PURE__*/_jsx(\"animate\",{attributeName:\"baseFrequency\",dur:`${animationDuration}s`,values:`${minFreq};${maxFreq};${minFreq}`,repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"feDisplacementMap\",{in:\"SourceGraphic\",in2:\"ripple\",scale:displacementScale})]})}),/*#__PURE__*/_jsx(\"p\",{style:{filter:`url(#${filterId})`,color:textColor,margin:0,maxWidth:\"100%\",whiteSpace:\"normal\",wordBreak:\"break-word\",overflowWrap:\"break-word\",...font},children:text})]});}addPropertyControls(RippleText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Breathe\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"48px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"}},turbulenceFrequency:{type:ControlType.Number,title:\"Ripple Frequency\",defaultValue:.05,min:.01,max:.2,step:.01},displacementScale:{type:ControlType.Number,title:\"Ripple Intensity\",defaultValue:5,min:0,max:20,step:1},animationDuration:{type:ControlType.Number,title:\"Animation Duration\",defaultValue:10,description:\"[Component by Tanjir i.](https://www.linkedin.com/in/tanjir-i-5ab6b6373/)\",min:1,max:30,step:1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RippleText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RippleTextEffect.map"],"mappings":"2KAMG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,OAAK,sBAAoB,oBAAkB,oBAAkB,SAAO,EACtI,GAD2J,EACjJ,EAAG,OAAoB,EAAK,IAAI,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,EAAU,OAAO,EAAE,SAAS,OAAO,WAAW,SAAS,UAAU,aAAa,aAAa,aAAa,GAAG,CAAI,EAAE,SAAS,CAAI,CAAC,EAChM,IAAM,EAAS,sBAA4B,EAAQ,EAAoB,GAAS,EAAQ,EAAoB,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,QAAQ,eAAe,MAAM,MAAM,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,cAAc,MAAM,EAAE,S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