{"version":3,"file":"Video_Scroll_progress.COmZ_p3o.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nUhoG2PRGNQeFbOjiPM1/A6OhUpZxZ8gCITYLNPu9/Video_Scroll_progress.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer-motion\";export function videoScrollProgress(Component){const SCROLL_START=0// Scroll position when animation starts\n;const SCROLL_DISTANCE=1200// Scroll distance after which animation ends\n;const SCROLL_END=SCROLL_START+SCROLL_DISTANCE;return props=>{// useScroll() returns the current scroll position\nconst{scrollY}=useScroll();// Calculate the scroll progress from 0 to 1\nconst progress=useTransform(scrollY,[SCROLL_START,SCROLL_END],[0,1]);// Pass the progress as a prop to the original component\nreturn /*#__PURE__*/_jsx(Component,{...props,progress:progress});};}\nexport const __FramerMetadata__ = {\"exports\":{\"videoScrollProgress\":{\"type\":\"reactHoc\",\"name\":\"videoScrollProgress\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video_Scroll_progress.map"],"mappings":"+NAA6F,SAAgB,EAAoB,EAAU,CAAC,IAAM,EAAa,EACxJ,EAAgB,KAChB,EAAW,EAAa,EAAgB,MAAO,CAAA,GAAO,CAC7D,GAAK,CAAC,UAAQ,CAAC,GAAW,CACpB,EAAS,EAAa,EAAQ,CAAC,EAAa,CAAW,EAAC,CAAC,EAAE,CAAE,EAAC,CACpE,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAe,UAAS,EAAC,AAAE,CAAE,cALpE,GAA2C,IAAkD"}