{"version":3,"file":"Shimmer_effect.BAhtfEwL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Cp9s4b2r508RLFK30Xw0/CqHZnqaJATjTYIkCOpnr/Shimmer_effect.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{fontControls}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";export function ShimmerText(props){const{text,font,fontColor,shimmerSpeed,shimmerDirection,...rest}=props;const shimmerAnimation=`@keyframes shimmerLTR {\n    0% {\n      background-position: -50%;\n    }\n    100% {\n      background-position: 150%;\n    }\n  }\n\n  @keyframes shimmerRTL {\n    0% {\n      background-position: 150%;\n    }\n    100% {\n      background-position: -50%;\n    }\n  }`;React.useEffect(()=>{const styleSheet=document.createElement(\"style\");styleSheet.type=\"text/css\";styleSheet.innerText=shimmerAnimation;document.head.appendChild(styleSheet);return()=>{document.head.removeChild(styleSheet);};},[]);return /*#__PURE__*/_jsxs(motion.div,{style:{...rest.style,...font,position:\"relative\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:\"#51565A\",position:\"relative\",zIndex:1,width:\"100%\",textAlign:\"center\"},children:text}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",color:\"#51565A\",background:`linear-gradient(${shimmerDirection===\"ltr\"?\"to right\":\"to left\"}, transparent, #ffffff, transparent)`,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",animation:`${shimmerDirection===\"ltr\"?\"shimmerLTR\":\"shimmerRTL\"} ${shimmerSpeed}s linear infinite`,backgroundSize:\"200% 100%\",zIndex:2,textAlign:\"center\"},children:text})]});}ShimmerText.defaultProps={text:\"Shimmering Text\",font:fontControls.defaultProps,fontColor:\"#51565A\",shimmerSpeed:2,shimmerDirection:\"ltr\"};addPropertyControls(ShimmerText,{text:{type:ControlType.String,title:\"Text\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Font\"},fontColor:{type:ControlType.Color,title:\"Font Color\"},shimmerSpeed:{type:ControlType.Number,title:\"Shimmer Speed\",min:1,max:10,defaultValue:2},shimmerDirection:{type:ControlType.Enum,title:\"Shimmer Direction\",options:[\"ltr\",\"rtl\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"ShimmerText\":{\"type\":\"reactComponent\",\"name\":\"ShimmerText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shimmer_effect.map"],"mappings":"gfAA0P,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,YAAU,eAAa,mBAAiB,GAAG,GAAM,EAgBnH,OAAtO,MAAoB,CAAC,IAAM,EAAW,SAAS,cAAc,QAAQ,CAAwG,MAAvG,GAAW,KAAK,WAAW,EAAW,UAAU;;;;;;;;;;;;;;;;KAAiB,SAAS,KAAK,YAAY,EAAW,KAAW,CAAC,SAAS,KAAK,YAAY,EAAW,GAAK,EAAE,CAAC,CAAqB,EAAM,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAK,MAAM,GAAG,EAAK,SAAS,WAAW,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,MAAM,OAAO,SAAS,SAAS,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,UAAU,SAAS,WAAW,OAAO,EAAE,MAAM,OAAO,UAAU,SAAS,CAAC,SAAS,EAAK,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,MAAM,UAAU,WAAW,mBAAmB,IAAmB,MAAM,WAAW,UAAU,sCAAsC,qBAAqB,OAAO,oBAAoB,cAAc,UAAU,GAAG,IAAmB,MAAM,aAAa,aAAa,GAAG,EAAa,mB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