{"version":3,"file":"Video_Scroll_progress.BPAlWlij.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":"4JAA6F,SAAgB,EAAoB,EAAU,CAE5F,MAAO,IAAO,CAC7D,GAAK,CAAC,WAAS,GAAW,CACpB,EAAS,EAAa,EAAQ,CAAC,EAAa,KAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CACpE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAe,WAAS,CAAC,mBALrB,IAAkD"}