{"version":3,"file":"Scroll.CfDfhmTu.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/fnUIQ7lPV7uNDTYprOms/4qVLnj61i3Yvh9ImUkw4/Scroll.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{motion,useViewportScroll}from\"framer-motion\";import{useEffect,useState}from\"react\";export default function Scroll(){const{scrollYProgress}=useViewportScroll();const[initialScale,setInitialScale]=useState(0)// Updated initial scale to 0\n;useEffect(()=>{const updateInitialScale=()=>{setInitialScale(scrollYProgress.current*100)// Adjusted calculation for initial scale\n;};// Listen for changes in scrollYProgress and update the initial scale\nscrollYProgress.onChange(updateInitialScale);// Initialize the initial scale\nupdateInitialScale();},[scrollYProgress]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n          .progress-bar-container {\n            position: fixed;\n            top: 0;\n            left: 0;\n            right: 0;\n            height: 2px;\n            width: ${initialScale}%;\n            border-radius: 4px;\n            overflow: hidden;    \n            filter: drop-shadow(0px 0px 4px #FD4C00);\n            margin:0 auto;\n          }\n\n          .progress-bar {\n            height: 100%;\n            width:100%;\n            background: #FD4C00;\n            transform-origin: 0%;\n          }\n        `}),/*#__PURE__*/_jsx(\"div\",{className:\"progress-bar-container\",children:/*#__PURE__*/_jsx(motion.div,{className:\"progress-bar\",style:{originX:.5}})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Scroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll.map"],"mappings":"qLAAyK,SAAwB,GAAQ,CAAC,GAAK,CAAC,mBAAiB,EAAkB,EAAO,CAAC,EAAa,GAAiBA,EAAS,CAAC,EAIzP,OAHzC,MAAc,CAAC,IAAM,MAAuB,CAAC,EAAgB,EAAgB,QAAQ,GAAG,CACxF,EACD,EAAgB,SAAS,CAAkB,EAC3C,EAAmB,CAAE,EAAE,CAAC,CAAe,CAAC,EAAsB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;qBAOxG,EAAa;;;;;;;;;;;;;SAazB,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,yBAAyB,SAAsB,EAAK,EAAO,IAAI,CAAC,UAAU,eAAe,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAxBpF,IAAoD,IAAsC"}