{"version":3,"file":"TextMask.C-MOGZRy.mjs","names":["useRef","useState","useMemo","useCallback","lines"],"sources":["https:/framerusercontent.com/modules/P9PAkqZrfxrTb30IqsNK/yLPniBzqRqH9DN8iq8br/TextMask.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,useMemo,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView,AnimatePresence}from\"framer-motion\";/**\n * @framerDisableUnlink\n *\n * Text Mask Animation - Enhanced version with improved overflow handling\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TextMask(props){const{text=\"Text Mask Animation\",textColor=\"#000000\",backgroundColor=\"#FFFFFF\",font,animationDelay=.1,animationDuration=.5,animationStagger=.07,lineHeight=1.5,style,tag=\"div\",balanceText=false,translateY=100,enableExitAnimation=true,exitTranslateY=-100,exitAnimationStagger=.04,exitAnimationDuration=.18,customEasing=\"0.32, 0.94, 0.6, 1\",exitEasing=\"0.6, 0.04, 0.98, 0.34\",textIndent=0,animationTrigger=\"inView\",triggerOnce=true,viewportAmount=.3}=props;const containerRef=useRef(null);const measureRef=useRef(null);const lineRefs=useRef([]);const[animationKey,setAnimationKey]=useState(0);const isStatic=useIsStaticRenderer();const[lineTexts,setLineTexts]=useState([]);const[autoAnimationReady,setAutoAnimationReady]=useState(false);const[maskStyles,setMaskStyles]=useState([]);const[hasAnimated,setHasAnimated]=useState(false);// Use single inView for container instead of per-line\nconst containerInView=useInView(containerRef,{once:triggerOnce,amount:viewportAmount});useEffect(()=>{if(animationTrigger===\"auto\"){const timer=setTimeout(()=>{startTransition(()=>{setAutoAnimationReady(true);setAnimationKey(prev=>prev+1);});},100);return()=>clearTimeout(timer);}else{startTransition(()=>{setAutoAnimationReady(false);setHasAnimated(false);});}},[animationTrigger]);const shouldAnimate=animationTrigger===\"auto\"?autoAnimationReady:containerInView;useEffect(()=>{if(shouldAnimate&&!hasAnimated){startTransition(()=>setHasAnimated(true));}},[shouldAnimate,hasAnimated]);// Parse easing once and memoize\nconst parsedCustomEasing=useMemo(()=>{try{const values=customEasing.split(\",\").map(val=>parseFloat(val.trim())).filter(val=>!isNaN(val)).slice(0,4);return values.length===4?values:[.32,.94,.6,1];}catch{return[.32,.94,.6,1];}},[customEasing]);const parsedExitEasing=useMemo(()=>{try{const values=exitEasing.split(\",\").map(val=>parseFloat(val.trim())).filter(val=>!isNaN(val)).slice(0,4);return values.length===4?values:[.6,.04,.98,.34];}catch{return[.6,.04,.98,.34];}},[exitEasing]);// Fix mask function based on reference code\nconst fixMask=useCallback(()=>{if(lineRefs.current.length===0||!lineRefs.current[0])return;const lineHeightDifference=lineHeight-1.2;const halfDiff=lineHeightDifference*.5;const lastIndex=lineRefs.current.length-1;const newMaskStyles=lineRefs.current.map((_,i)=>({lineHeight:1.2,marginTop:i===0?`${halfDiff}em`:\"0\",marginBottom:i===lastIndex?`${halfDiff}em`:`${lineHeightDifference}em`}));startTransition(()=>setMaskStyles(newMaskStyles));},[lineHeight]);// Apply fixMask when lines change\nuseEffect(()=>{if(isStatic||lineTexts.length===0)return;const timer=setTimeout(()=>{fixMask();},50);return()=>clearTimeout(timer);},[lineTexts,fixMask,isStatic]);// Update animation key when text changes to force re-animation\nuseEffect(()=>{startTransition(()=>setAnimationKey(prev=>prev+1));},[text]);const measureLines=useCallback(()=>{if(isStatic||!containerRef.current||!measureRef.current)return;const tempDiv=measureRef.current;const containerWidth=containerRef.current.getBoundingClientRect().width||containerRef.current.clientWidth;tempDiv.style.width=`${containerWidth}px`;const node=tempDiv.firstChild;if(!node){startTransition(()=>setLineTexts([text]));return;}try{let graphemes;if(typeof Intl!==\"undefined\"&&\"Segmenter\"in Intl){const segmenter=new Intl.Segmenter;graphemes=Array.from(segmenter.segment(text),s=>s.segment);}else{graphemes=Array.from(text);}const ranges=[];let start=0;let prevTop=null;const range=document.createRange();for(let i=0;i<graphemes.length;i++){range.setStart(node,start);range.setEnd(node,i+1);const rects=range.getClientRects();if(!rects.length)continue;const top=Math.round(rects[rects.length-1].top);if(prevTop===null){prevTop=top;}if(top!==prevTop){ranges.push({start,end:i,top:prevTop});start=i;prevTop=top;}}if(start<graphemes.length){range.setStart(node,start);range.setEnd(node,graphemes.length);const rects=range.getClientRects();if(rects.length){ranges.push({start,end:graphemes.length,top:Math.round(rects[rects.length-1].top)});}}range.detach();const lines=ranges.map(r=>graphemes.slice(r.start,r.end).join(\"\"));startTransition(()=>setLineTexts(lines.length?lines:[text]));}catch{startTransition(()=>setLineTexts(text.split(\"\\n\")));}},[isStatic,text]);useEffect(()=>{if(isStatic)return;let observer=null;let rafId=null;let lastWidth=0;let timeoutId=null;const debouncedMeasure=()=>{if(timeoutId)clearTimeout(timeoutId);if(rafId)cancelAnimationFrame(rafId);timeoutId=window.setTimeout(()=>{rafId=requestAnimationFrame(()=>{if(containerRef.current){const currentWidth=containerRef.current.getBoundingClientRect().width;if(Math.abs(currentWidth-lastWidth)>1||lastWidth===0){lastWidth=currentWidth;measureLines();}}else{measureLines();}});},16);};debouncedMeasure();if(containerRef.current){observer=new ResizeObserver(debouncedMeasure);observer.observe(containerRef.current);}window.addEventListener(\"resize\",debouncedMeasure,{passive:true});return()=>{observer?.disconnect();window.removeEventListener(\"resize\",debouncedMeasure);if(rafId)cancelAnimationFrame(rafId);if(timeoutId)clearTimeout(timeoutId);};},[measureLines,isStatic]);const containerVariants=useMemo(()=>({hidden:{},visible:{transition:{staggerChildren:animationStagger,delayChildren:animationDelay}},exit:enableExitAnimation?{transition:{staggerChildren:exitAnimationStagger,staggerDirection:1}}:undefined}),[animationStagger,animationDelay,enableExitAnimation,exitAnimationStagger]);// Memoize line variants to prevent recreation on every render\nconst lineVariants=useMemo(()=>({hidden:{y:translateY},visible:{y:0,transition:{duration:animationDuration,ease:parsedCustomEasing}},exit:enableExitAnimation?{y:exitTranslateY,transition:{duration:exitAnimationDuration,ease:parsedExitEasing}}:undefined}),[animationDuration,enableExitAnimation,exitAnimationDuration,translateY,exitTranslateY,parsedCustomEasing,parsedExitEasing]);const Tag=tag;const balanceStyle=useMemo(()=>balanceText?{textWrap:\"balance\"}:{},[balanceText]);const isInline=useMemo(()=>[\"p\",\"span\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].includes(tag),[tag]);// Memoize static container style\nconst staticContainerStyle=useMemo(()=>({position:\"relative\",width:\"100%\",height:\"100%\",minWidth:5,minHeight:5,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",backgroundColor,...style}),[backgroundColor,style]);// Memoize static text style\nconst staticTextStyle=useMemo(()=>({...font,color:textColor,width:\"100%\",minWidth:0,lineHeight,textIndent,margin:0,wordBreak:\"break-word\",...balanceStyle}),[font,textColor,lineHeight,textIndent,balanceStyle]);// Memoize measure div style\nconst measureDivStyle=useMemo(()=>({position:\"absolute\",left:0,top:0,visibility:\"hidden\",width:\"100%\",...font,lineHeight,textIndent,wordBreak:\"break-word\",whiteSpace:\"pre-wrap\",pointerEvents:\"none\",zIndex:-1,...balanceStyle}),[font,lineHeight,textIndent,balanceStyle]);// Memoize tag style\nconst tagStyle=useMemo(()=>({...font,color:textColor,width:\"100%\",minWidth:0,lineHeight:lineHeight,margin:0,wordBreak:\"break-word\",...balanceStyle}),[font,textColor,lineHeight,balanceStyle]);// Memoize container motion style\nconst containerMotionStyle=useMemo(()=>({width:\"100%\",display:isInline?\"inline\":\"block\"}),[isInline]);if(isStatic){return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:staticContainerStyle,children:/*#__PURE__*/_jsx(Tag,{style:staticTextStyle,children:text})});}const lines=lineTexts.length>0?lineTexts:text.split(\"\\n\");const Container=isInline?motion.span:motion.div;const Wrapper=isInline?\"span\":\"div\";const MotionLine=isInline?motion.span:motion.div;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:staticContainerStyle,children:[/*#__PURE__*/_jsx(\"div\",{ref:measureRef,style:measureDivStyle,children:text}),/*#__PURE__*/_jsx(Tag,{style:tagStyle,children:/*#__PURE__*/_jsxs(AnimatePresence,{mode:\"wait\",initial:false,children:[hasAnimated&&/*#__PURE__*/_jsx(Container,{variants:containerVariants,initial:\"hidden\",animate:shouldAnimate?\"visible\":\"hidden\",exit:enableExitAnimation?\"exit\":undefined,style:containerMotionStyle,children:lines.map((line,index)=>{const maskStyle=maskStyles[index]||{marginTop:\"0\",marginBottom:\"0\",lineHeight:1.2};return /*#__PURE__*/_jsx(Wrapper,{ref:el=>{lineRefs.current[index]=el;},style:{display:\"block\",width:\"100%\",position:\"relative\",lineHeight:maskStyle.lineHeight,marginTop:maskStyle.marginTop,marginBottom:maskStyle.marginBottom,overflow:\"clip\"},children:/*#__PURE__*/_jsx(MotionLine,{variants:lineVariants,style:{...index===0?{textIndent}:{},display:\"block\",width:\"100%\"},children:line||\"\\xa0\"})},`${index}-${line}`);})},`${animationKey}-${text}`),!hasAnimated&&/*#__PURE__*/_jsx(Container,{initial:\"hidden\",animate:\"hidden\",style:containerMotionStyle,children:lines.map((line,index)=>{const maskStyle=maskStyles[index]||{marginTop:\"0\",marginBottom:\"0\",lineHeight:1.2};return /*#__PURE__*/_jsx(Wrapper,{ref:el=>{lineRefs.current[index]=el;},style:{display:\"block\",width:\"100%\",position:\"relative\",lineHeight:maskStyle.lineHeight,marginTop:maskStyle.marginTop,marginBottom:maskStyle.marginBottom,overflow:\"clip\"},children:/*#__PURE__*/_jsx(MotionLine,{variants:lineVariants,style:{...index===0?{textIndent}:{},display:\"block\",width:\"100%\"},children:line||\"\\xa0\"})},`${index}-${line}`);})},\"initial\")]})})]});}addPropertyControls(TextMask,{// Content\ntext:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a paragraph with multiple lines that will automatically be detected and animated with a mask effect. Each line will animate independently from bottom to top.\",displayTextArea:true},tag:{type:ControlType.Enum,title:\"HTML Tag\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\",\"div\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Paragraph\",\"Span\",\"Div\"],defaultValue:\"div\"},// Appearance\ntextColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"24px\",variant:\"Medium\",letterSpacing:\"-0.02em\",textAlign:\"left\"},controls:\"extended\",defaultFontType:\"sans-serif\"},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.5,min:1,max:3,step:.1},textIndent:{type:ControlType.Number,title:\"Text Indent\",defaultValue:0,min:0,max:500,step:1,unit:\"px\"},balanceText:{type:ControlType.Boolean,title:\"Balance Text\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},// Animation Trigger\nanimationTrigger:{type:ControlType.Enum,title:\"Trigger\",options:[\"inView\",\"auto\"],optionTitles:[\"In View\",\"On Load\"],defaultValue:\"inView\",displaySegmentedControl:true},triggerOnce:{type:ControlType.Boolean,title:\"Trigger Once\",defaultValue:true,enabledTitle:\"Once\",disabledTitle:\"Repeat\",hidden:({animationTrigger})=>animationTrigger===\"auto\"},viewportAmount:{type:ControlType.Number,title:\"Viewport\",defaultValue:.3,min:0,max:1,step:.1,hidden:({animationTrigger})=>animationTrigger===\"auto\"},// Entry Animation\nanimationDelay:{type:ControlType.Number,title:\"Delay\",defaultValue:.2,min:0,max:2,step:.05,unit:\"s\"},animationDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:1,min:.1,max:10,step:.05,unit:\"s\"},animationStagger:{type:ControlType.Number,title:\"Stagger\",defaultValue:.08,min:0,max:1,step:.01,unit:\"s\"},translateY:{type:ControlType.Number,title:\"Translate Y\",defaultValue:80,min:-500,max:500,step:1,unit:\"px\"},customEasing:{type:ControlType.String,title:\"Easing\",defaultValue:\"0.16, 1, 0.3, 1\",placeholder:\"x1, y1, x2, y2\"},// Exit Animation\nenableExitAnimation:{type:ControlType.Boolean,title:\"Enable Exit\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},exitAnimationDuration:{type:ControlType.Number,title:\"Exit Duration\",defaultValue:.5,min:.05,max:2,step:.01,unit:\"s\",hidden:({enableExitAnimation})=>!enableExitAnimation},exitAnimationStagger:{type:ControlType.Number,title:\"Exit Stagger\",defaultValue:.04,min:0,max:1,step:.01,unit:\"s\",hidden:({enableExitAnimation})=>!enableExitAnimation},exitTranslateY:{type:ControlType.Number,title:\"Exit Translate Y\",defaultValue:-80,min:-500,max:500,step:1,unit:\"px\",hidden:({enableExitAnimation})=>!enableExitAnimation},exitEasing:{type:ControlType.String,title:\"Exit Easing\",defaultValue:\"0.6, 0.04, 0.98, 0.34\",placeholder:\"x1, y1, x2, y2\",hidden:({enableExitAnimation})=>!enableExitAnimation}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextMask\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextMask.map"],"mappings":"4SAOG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,OAAK,sBAAsB,YAAU,UAAU,kBAAgB,UAAU,OAAK,iBAAe,GAAG,oBAAkB,GAAG,mBAAiB,IAAI,aAAW,IAAI,QAAM,MAAI,MAAM,cAAY,GAAM,aAAW,IAAI,sBAAoB,GAAK,iBAAe,KAAK,uBAAqB,IAAI,wBAAsB,IAAI,eAAa,qBAAqB,aAAW,wBAAwB,aAAW,EAAE,mBAAiB,SAAS,eAAY,GAAK,kBAAe,IAAI,EAAY,EAAaA,EAAO,KAAK,CAAO,EAAWA,EAAO,KAAK,CAAO,EAASA,EAAO,EAAE,CAAC,CAAM,CAAC,GAAa,GAAiBC,EAAS,EAAE,CAAO,EAAS,IAAqB,CAAM,CAAC,EAAU,GAAcA,EAA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