{"version":3,"file":"ScrollTextFX.Dsb4WUJe.mjs","names":["localizedValues","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","useRef","useMemo"],"sources":["https:/framerusercontent.com/modules/D1OjOMV6vqMFL5M24mqZ/4xw5rduzHe7o1dPIQCI0/XtTsjhtWr-0.js","https:/framerusercontent.com/modules/D1OjOMV6vqMFL5M24mqZ/4xw5rduzHe7o1dPIQCI0/XtTsjhtWr.js","https:/framerusercontent.com/modules/lmD7catWaogeRGLmNXRE/Ein5Np8GeeerrwvNZHC4/XtTsjhtWr.js","https:/framerusercontent.com/modules/3GF5mMRXXtDMEuP3orV1/CzCF1bfZl43UHZw3fJWc/ScrollTextFX.js"],"sourcesContent":["export const v0=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";\nexport const __FramerMetadata__ = {\"exports\":{\"v0\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0e6a859)\nimport*as localizedValues from\"./XtTsjhtWr-0.js\";const valuesByLocaleId={Lekhzz8On:localizedValues};export default function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export function usePreloadLocalizedValues(){}\nexport const __FramerMetadata__ = {\"exports\":{\"usePreloadLocalizedValues\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0e6a859)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Video}from\"https://framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/3u1rzVBIgsGIudwbIWWv/Video.js\";import getLocalizedValue from\"https://framerusercontent.com/modules/D1OjOMV6vqMFL5M24mqZ/4xw5rduzHe7o1dPIQCI0/XtTsjhtWr.js\";const VideoFonts=getFonts(Video);const cycleOrder=[\"W8UynkYxq\",\"QBsrR5LoR\",\"D4jG1GP03\",\"YVsiK373O\",\"p9tCOlweR\",\"SgXQ12_Ki\"];const serializationHash=\"framer-stKTj\";const variantClassNames={D4jG1GP03:\"framer-v-19gip3d\",p9tCOlweR:\"framer-v-1lnu7a7\",QBsrR5LoR:\"framer-v-ggkrxe\",SgXQ12_Ki:\"framer-v-nrs2ig\",W8UynkYxq:\"framer-v-l5yjel\",YVsiK373O:\"framer-v-sk63oo\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:0,delay:0,duration:2,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Tab Default\":\"YVsiK373O\",\"Tab Expand\":\"p9tCOlweR\",\"Tab Flip\":\"SgXQ12_Ki\",Default:\"W8UynkYxq\",Expand:\"QBsrR5LoR\",Flip:\"D4jG1GP03\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"W8UynkYxq\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"W8UynkYxq\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-l5yjel\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"W8UynkYxq\",ref:refBinding,style:{...style},...addPropertyOverrides({D4jG1GP03:{\"data-framer-name\":\"Flip\"},p9tCOlweR:{\"data-framer-name\":\"Tab Expand\"},QBsrR5LoR:{\"data-framer-name\":\"Expand\"},SgXQ12_Ki:{\"data-framer-name\":\"Tab Flip\"},YVsiK373O:{\"data-framer-name\":\"Tab Default\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1tiptc5\",\"data-framer-name\":\"3D\",layoutDependency:layoutDependency,layoutId:\"UIHhkM08Y\",style:{transformPerspective:1200},children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-3o5sys\",\"data-framer-name\":\"1\",layoutDependency:layoutDependency,layoutId:\"T1DOIQ2Si\",style:{rotate:0,rotateY:0},variants:{D4jG1GP03:{rotate:-12,rotateY:180},p9tCOlweR:{rotate:0,rotateY:0},SgXQ12_Ki:{rotate:-12,rotateY:180},YVsiK373O:{rotate:0,rotateY:0}},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-174t0xb\",\"data-framer-name\":\"Front\",layoutDependency:layoutDependency,layoutId:\"e3bBb9_bD\",children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1gie5jw\",layoutDependency:layoutDependency,layoutId:\"cLS7bse1Y\",style:{backgroundColor:\"var(--token-258f48a7-748a-4a1f-ad6e-e7edc8bd50fa, rgb(223, 36, 33))\"}})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1ip6njl\",\"data-framer-name\":\"Back\",layoutDependency:layoutDependency,layoutId:\"CTTHwPQSh\",style:{opacity:0,rotateY:180},variants:{D4jG1GP03:{opacity:1},p9tCOlweR:{opacity:1},QBsrR5LoR:{opacity:1},SgXQ12_Ki:{opacity:1}},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-h553du-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"g_lGXGwZ1-container\",nodeId:\"g_lGXGwZ1\",rendersWithMotion:true,scopeId:\"XtTsjhtWr\",children:/*#__PURE__*/_jsx(Video,{backgroundColor:\"rgba(0, 0, 0, 0)\",borderRadius:0,bottomLeftRadius:0,bottomRightRadius:0,controls:false,height:\"100%\",id:\"g_lGXGwZ1\",isMixedBorderRadius:false,layoutId:\"g_lGXGwZ1\",loop:true,muted:true,objectFit:\"cover\",playing:true,posterEnabled:false,srcFile:\"https://framerusercontent.com/assets/k1mPOf71qCUk2MErRM1IshXGYs.mp4\",srcType:\"Upload\",srcUrl:getLocalizedValue(\"v0\",activeLocale)??\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",startTime:0,style:{height:\"100%\",width:\"100%\"},topLeftRadius:0,topRightRadius:0,volume:25,width:\"100%\"})})})})]}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1etii4i\",\"data-framer-name\":\"2\",layoutDependency:layoutDependency,layoutId:\"LCN_zBSB3\",style:{rotateY:0},variants:{D4jG1GP03:{rotateY:180},p9tCOlweR:{rotateY:0},SgXQ12_Ki:{rotateY:180},YVsiK373O:{rotateY:0}},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-1sfys1v\",\"data-framer-name\":\"Front\",layoutDependency:layoutDependency,layoutId:\"rDivr2kx2\",children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-amy3vu\",layoutDependency:layoutDependency,layoutId:\"wYIfgpyeR\",style:{backgroundColor:\"var(--token-258f48a7-748a-4a1f-ad6e-e7edc8bd50fa, rgb(223, 36, 33))\"}})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-u70rn4\",\"data-framer-name\":\"Back\",layoutDependency:layoutDependency,layoutId:\"NSjutHHJm\",style:{opacity:0,rotateY:180},variants:{D4jG1GP03:{opacity:1},p9tCOlweR:{opacity:1},QBsrR5LoR:{opacity:1},SgXQ12_Ki:{opacity:1}},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-dh5l3k-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"CEjrE_vcj-container\",nodeId:\"CEjrE_vcj\",rendersWithMotion:true,scopeId:\"XtTsjhtWr\",children:/*#__PURE__*/_jsx(Video,{backgroundColor:\"rgba(0, 0, 0, 0)\",borderRadius:0,bottomLeftRadius:0,bottomRightRadius:0,controls:false,height:\"100%\",id:\"CEjrE_vcj\",isMixedBorderRadius:false,layoutId:\"CEjrE_vcj\",loop:true,muted:true,objectFit:\"cover\",playing:true,posterEnabled:false,srcFile:\"https://framerusercontent.com/assets/sX6bu24NCWxofJfMVmzJO0bMXo.mp4\",srcType:\"Upload\",srcUrl:getLocalizedValue(\"v0\",activeLocale)??\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",startTime:0,style:{height:\"100%\",width:\"100%\"},topLeftRadius:0,topRightRadius:0,volume:25,width:\"100%\"})})})})]}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-kdgnql\",\"data-framer-name\":\"3\",layoutDependency:layoutDependency,layoutId:\"pfW4QqIEa\",style:{rotate:0,rotateY:0},variants:{D4jG1GP03:{rotate:12,rotateY:180},p9tCOlweR:{rotate:0,rotateY:0},SgXQ12_Ki:{rotate:12,rotateY:180},YVsiK373O:{rotate:0,rotateY:0}},children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-u4mkb1\",\"data-framer-name\":\"Front\",layoutDependency:layoutDependency,layoutId:\"NViXNMIIh\",children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-mii6fo\",layoutDependency:layoutDependency,layoutId:\"aFIkLNFWz\",style:{backgroundColor:\"var(--token-258f48a7-748a-4a1f-ad6e-e7edc8bd50fa, rgb(223, 36, 33))\"}})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-3tnxtr\",\"data-framer-name\":\"Back\",layoutDependency:layoutDependency,layoutId:\"cWMr53KEt\",style:{opacity:0,rotateY:180},variants:{D4jG1GP03:{opacity:1},p9tCOlweR:{opacity:1},QBsrR5LoR:{opacity:1},SgXQ12_Ki:{opacity:1}},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-s5kqmg-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"XjonMr8rT-container\",nodeId:\"XjonMr8rT\",rendersWithMotion:true,scopeId:\"XtTsjhtWr\",children:/*#__PURE__*/_jsx(Video,{backgroundColor:\"rgba(0, 0, 0, 0)\",borderRadius:0,bottomLeftRadius:0,bottomRightRadius:0,controls:false,height:\"100%\",id:\"XjonMr8rT\",isMixedBorderRadius:false,layoutId:\"XjonMr8rT\",loop:true,muted:true,objectFit:\"cover\",playing:true,posterEnabled:false,srcFile:\"https://framerusercontent.com/assets/Ku7C1IyCV3XOdPuW3slPuYs5rk.mp4\",srcType:\"Upload\",srcUrl:getLocalizedValue(\"v0\",activeLocale)??\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",startTime:0,style:{height:\"100%\",width:\"100%\"},topLeftRadius:0,topRightRadius:0,volume:25,width:\"100%\"})})})})]})]})})})})});});const css=[\".framer-stKTj.framer-o41pvu, .framer-stKTj .framer-o41pvu { display: block; }\",\".framer-stKTj.framer-l5yjel { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-stKTj .framer-1tiptc5 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; transform-style: preserve-3d; width: min-content; }\",\".framer-stKTj .framer-3o5sys, .framer-stKTj .framer-1etii4i, .framer-stKTj .framer-kdgnql { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; transform-style: preserve-3d; width: min-content; }\",\".framer-stKTj .framer-174t0xb, .framer-stKTj .framer-1sfys1v, .framer-stKTj .framer-u4mkb1 { -webkit-user-select: none; align-content: center; align-items: center; backface-visibility: hidden; bottom: 0px; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; justify-content: center; left: 0px; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: absolute; right: 0px; top: 0px; user-select: none; z-index: 1; }\",\".framer-stKTj .framer-1gie5jw, .framer-stKTj .framer-amy3vu, .framer-stKTj .framer-mii6fo { flex: 1 0 0px; height: 100%; overflow: visible; position: relative; width: 1px; }\",\".framer-stKTj .framer-1ip6njl { -webkit-user-select: none; align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; user-select: none; width: min-content; z-index: 0; }\",\".framer-stKTj .framer-h553du-container, .framer-stKTj .framer-dh5l3k-container, .framer-stKTj .framer-s5kqmg-container { flex: none; height: 448px; position: relative; width: 307px; }\",\".framer-stKTj .framer-u70rn4, .framer-stKTj .framer-3tnxtr { -webkit-user-select: none; align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; user-select: none; width: min-content; }\",\".framer-stKTj.framer-v-ggkrxe.framer-l5yjel { gap: 24px; }\",\".framer-stKTj.framer-v-ggkrxe .framer-1tiptc5, .framer-stKTj.framer-v-19gip3d.framer-l5yjel, .framer-stKTj.framer-v-19gip3d .framer-1tiptc5 { gap: 30px; }\",\".framer-stKTj.framer-v-19gip3d .framer-3o5sys, .framer-stKTj.framer-v-nrs2ig .framer-3o5sys { z-index: 2; }\",\".framer-stKTj.framer-v-19gip3d .framer-1etii4i, .framer-stKTj.framer-v-nrs2ig .framer-1etii4i { z-index: 1; }\",\".framer-stKTj.framer-v-19gip3d .framer-kdgnql, .framer-stKTj.framer-v-nrs2ig .framer-kdgnql { z-index: 0; }\",\".framer-stKTj.framer-v-sk63oo .framer-h553du-container, .framer-stKTj.framer-v-sk63oo .framer-dh5l3k-container, .framer-stKTj.framer-v-sk63oo .framer-s5kqmg-container, .framer-stKTj.framer-v-1lnu7a7 .framer-h553du-container, .framer-stKTj.framer-v-1lnu7a7 .framer-dh5l3k-container, .framer-stKTj.framer-v-1lnu7a7 .framer-s5kqmg-container, .framer-stKTj.framer-v-nrs2ig .framer-h553du-container, .framer-stKTj.framer-v-nrs2ig .framer-dh5l3k-container, .framer-stKTj.framer-v-nrs2ig .framer-s5kqmg-container { aspect-ratio: 0.6852678571428571 / 1; height: auto; width: 215px; }\",\".framer-stKTj.framer-v-1lnu7a7 .framer-1tiptc5, .framer-stKTj.framer-v-nrs2ig .framer-1tiptc5 { gap: 16px; }\",\".framer-stKTj.framer-v-nrs2ig.framer-l5yjel { gap: 14px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 448\n * @framerIntrinsicWidth 921\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"QBsrR5LoR\":{\"layout\":[\"auto\",\"auto\"]},\"D4jG1GP03\":{\"layout\":[\"auto\",\"auto\"]},\"YVsiK373O\":{\"layout\":[\"auto\",\"auto\"]},\"p9tCOlweR\":{\"layout\":[\"auto\",\"auto\"]},\"SgXQ12_Ki\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerXtTsjhtWr=withCSS(Component,css,\"framer-stKTj\");export default FramerXtTsjhtWr;FramerXtTsjhtWr.displayName=\"3D Card\";FramerXtTsjhtWr.defaultProps={height:448,width:921};addPropertyControls(FramerXtTsjhtWr,{variant:{options:[\"W8UynkYxq\",\"QBsrR5LoR\",\"D4jG1GP03\",\"YVsiK373O\",\"p9tCOlweR\",\"SgXQ12_Ki\"],optionTitles:[\"Default\",\"Expand\",\"Flip\",\"Tab Default\",\"Tab Expand\",\"Tab Flip\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerXtTsjhtWr,[{explicitInter:true,fonts:[]},...VideoFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerXtTsjhtWr\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"921\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"448\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"QBsrR5LoR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"D4jG1GP03\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"YVsiK373O\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"p9tCOlweR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"SgXQ12_Ki\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Handwritten text reveal component with drawing animation on scroll\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useMemo}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollReveal(props){const{text=\"Hello World! This is handwritten text that reveals as you scroll.\",textColor=\"#000000\",strokeWidth=2,animationSpeed=1,font,lineDelay=.1,animationDuration=.6,direction=\"left\",revealDirection=\"bottom-to-top\",easing=\"easeOut\",viewportThreshold=.3}=props;const containerRef=useRef(null);const isStatic=useIsStaticRenderer();// Use useInView to detect when component enters viewport\nconst isInView=useInView(containerRef,{once:true,amount:viewportThreshold});// Split text into lines\nconst lines=useMemo(()=>text.split(\"\\n\"),[text]);if(isStatic){return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{...props.style,position:\"relative\",width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"link\",{href:\"https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap\",rel:\"stylesheet\"}),lines.map((line,index)=>/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"'Caveat', cursive\",fontSize:\"clamp(2rem, 5vw, 4rem)\",fontWeight:600,color:textColor,lineHeight:1.4,...font},children:line},index))]});}return /*#__PURE__*/_jsxs(motion.div,{ref:containerRef,style:{...props.style,position:\"relative\",width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"center\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"link\",{href:\"https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap\",rel:\"stylesheet\"}),lines.map((line,index)=>{const getInitialPosition=()=>{switch(direction){case\"left\":return{x:\"-100%\",y:\"0%\",opacity:0};case\"right\":return{x:\"100%\",y:\"0%\",opacity:0};case\"top\":return{x:\"0%\",y:\"-100%\",opacity:0};case\"bottom\":return{x:\"0%\",y:\"100%\",opacity:0};}};const getClipPath=()=>{switch(revealDirection){case\"bottom-to-top\":return{initial:\"inset(100% 0% 0% 0%)\",animate:\"inset(0% 0% 0% 0%)\"};case\"top-to-bottom\":return{initial:\"inset(0% 0% 100% 0%)\",animate:\"inset(0% 0% 0% 0%)\"};case\"left-to-right\":return{initial:\"inset(0% 100% 0% 0%)\",animate:\"inset(0% 0% 0% 0%)\"};case\"right-to-left\":return{initial:\"inset(0% 0% 0% 100%)\",animate:\"inset(0% 0% 0% 0%)\"};}};const clipPath=getClipPath();return /*#__PURE__*/_jsx(motion.span,{initial:{clipPath:clipPath.initial},animate:isInView?{clipPath:clipPath.animate}:{clipPath:clipPath.initial},transition:{duration:animationDuration/animationSpeed,ease:easing,delay:index*(animationDuration+lineDelay)/animationSpeed},style:{fontFamily:\"'Caveat', cursive\",fontSize:\"clamp(2rem, 5vw, 4rem)\",fontWeight:600,color:textColor,lineHeight:1.4,display:\"block\",...font},children:line},index);})]});}addPropertyControls(ScrollReveal,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Hello World! This is handwritten text that reveals as you scroll.\",displayTextArea:true},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},revealDirection:{type:ControlType.Enum,title:\"Reveal Direction\",options:[\"bottom-to-top\",\"top-to-bottom\",\"left-to-right\",\"right-to-left\"],optionTitles:[\"Bottom to Top\",\"Top to Bottom\",\"Left to Right\",\"Right to Left\"],defaultValue:\"bottom-to-top\",displaySegmentedControl:false},lineDelay:{type:ControlType.Number,title:\"Line Delay\",defaultValue:.1,min:0,max:1,step:.05,unit:\"s\"},animationDuration:{type:ControlType.Number,title:\"Reveal Duration\",defaultValue:.6,min:.1,max:2,step:.1,unit:\"s\"},animationSpeed:{type:ControlType.Number,title:\"Speed Multiplier\",defaultValue:1,min:.5,max:3,step:.1},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"easeOut\",\"easeIn\",\"easeInOut\",\"linear\"],optionTitles:[\"Ease Out\",\"Ease In\",\"Ease In Out\",\"Linear\"],defaultValue:\"easeOut\",displaySegmentedControl:false},viewportThreshold:{type:ControlType.Number,title:\"Trigger Threshold\",defaultValue:.3,min:0,max:1,step:.1,unit:\"\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"clamp(2rem, 5vw, 4rem)\",variant:\"Semibold\",letterSpacing:\"0em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollReveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollTextFX.map"],"mappings":"kdAAa,EAAG,uEACH,EAAqB,CAAC,QAAU,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,mBAAqB,CAAC,KAAO,UAAU,CAAC,CAAC,KCAxD,SAAwB,EAAkB,EAAI,EAAO,CAAC,KAAM,GAAO,CAAC,IAAM,EAAO,EAAiB,EAAO,IAAI,GAAG,EAAO,CAAC,IAAM,EAAM,EAAO,GAAK,GAAG,EAAM,OAAO,CAAM,CAAC,EAAO,EAAO,QAAS,CAAC,mBAAnP,EAA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