{"version":3,"file":"VideoScrollProgress.DLCmCBZc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/5aDaTQptPRIZYTxEHU2c/9iVbASnVsUPnPFgCr0nh/VideoScrollProgress.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=1300// 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=./VideoScrollProgress.map"],"mappings":"4JAA6F,SAAgB,EAAoB,EAAU,CAE5F,MAAO,IAAO,CAC7D,GAAK,CAAC,WAAS,EAAU,EACnB,EAAS,EAAa,EAAQ,CAAC,EAAa,IAAU,EAAE,CAAC,EAAE,CAAC,CAAC,EACnE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAe,UAAQ,CAAC,CAAE,CAAE,iBALzB,IAAkD"}