{"version":3,"file":"LineAnimation.DtkhaA_A.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/C6rB5aLxzimLuOuiOhcZ/Bk9ombYH75pad2Pl3CW7/LineAnimation.js"],"sourcesContent":["// Line Animation component that animates from center to both sides when entering viewport\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useInView}from\"framer-motion\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 10\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LineAnimation(props){const{weight,color,duration}=props;const ref=useRef(null);const isInView=useInView(ref,{once:true,margin:\"-100px\"});const isStatic=useIsStaticRenderer();return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.div,{initial:{scaleX:isStatic?1:0},animate:isStatic?{scaleX:1}:isInView?{scaleX:1}:{scaleX:0},transition:{duration:duration,ease:\"easeInOut\"},style:{width:\"100%\",height:weight,backgroundColor:color,transformOrigin:\"center\"}})});}addPropertyControls(LineAnimation,{weight:{type:ControlType.Number,title:\"Weight\",defaultValue:2,min:1,max:20,step:1,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1,min:.1,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LineAnimation\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"100\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"10\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LineAnimation.map"],"mappings":"0OAOG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,QAAM,YAAU,EAAY,EAAIA,EAAO,IAAI,EAAQ,EAAS,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,QAAQ,CAAC,EAAQ,EAAS,EAAoB,EAAE,OAAoB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,QAAQ,EAAE,SAAsB,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAY,EAAE,QAAQ,GAAoB,EAAX,CAAC,OAAO,CAAC,EAAsB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAU,WAAS,KAAK,WAAW,EAAE,MAAM,CAAC,MAAM,OAAO,OAAO,EAAO,gBAAgB,EAAM,gBAAgB,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,iBANthB,IAA4C,IAA0B,IAAwE,EAMyY,EAAoB,EAAc,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC"}