{"version":3,"file":"AnimatedText.NUhbugP4.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hcijIfPMev6aodORyULQ/eQS8J4opGB4P9zShGChh/AnimatedText.js"],"sourcesContent":["// Animated text component where letters cascade upwards one after another\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AnimatedText(props){const{text=\"Hello World\",textColor=\"#000000\",font,staggerDelay=.05,animationDuration=.6,distance=20,pauseDuration=1}=props;const letters=text.split(\"\");return /*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",flexWrap:\"wrap\",width:\"max-content\",...font,color:textColor},children:letters.map((letter,index)=>/*#__PURE__*/_jsx(motion.span,{initial:{y:0},animate:{y:[0,-distance,0]},transition:{duration:animationDuration,delay:index*staggerDelay,ease:\"easeInOut\",repeat:Infinity,repeatDelay:pauseDuration},style:{display:\"inline-block\",whiteSpace:letter===\" \"?\"pre\":\"normal\"},children:letter===\" \"?\"\\xa0\":letter},index))});}addPropertyControls(AnimatedText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Hello World\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},staggerDelay:{type:ControlType.Number,title:\"Stagger Delay\",defaultValue:.05,min:0,max:.5,step:.01,unit:\"s\"},animationDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:.6,min:.1,max:2,step:.1,unit:\"s\"},distance:{type:ControlType.Number,title:\"Distance\",defaultValue:20,min:0,max:100,step:1,unit:\"px\"},pauseDuration:{type:ControlType.Number,title:\"Pause Duration\",defaultValue:1,min:0,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedText.map"],"mappings":"yMAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,cAAc,YAAU,UAAU,OAAK,eAAa,IAAI,oBAAkB,GAAG,WAAS,GAAG,gBAAc,GAAG,EAAY,EAAQ,EAAK,MAAM,EAAE,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,SAAS,OAAO,MAAM,cAAc,GAAG,EAAK,MAAM,CAAS,EAAE,SAAS,EAAQ,KAAK,EAAO,IAAqB,EAAK,EAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,EAAS,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,EAAkB,MAAM,EAAM,EAAa,KAAK,YAAY,OAAO,IAAS,YAAY,CAAa,EAAE,MAAM,CAAC,QAAQ,eAAe,WAAW,IAAS,IAAI,MAAM,QAAQ,EAAE,SAAS,IAAS,IAAI,OAAO,CAAM,EAAE,CAAK,CAAC,CAAC,CAAC,CAAE,iBAHtnB,IAAkC,IAAoD,EAGiiB,EAAoB,EAAa,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,aAAa,EAAE,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,OAAO,cAAc,UAAU,WAAW,KAAK,CAAC,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,IAAI,IAAI,EAAE,IAAI,GAAG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