{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/5fAzT5QmmlGUx8srizgW/WlyWLAVjs5wK8WYvMLjk/HorizontalScroll.js"],
  "sourcesContent": ["import{jsx as e,jsxs as t}from\"react/jsx-runtime\";import{addPropertyControls as r,ControlType as i}from\"framer\";import{useLayoutEffect as n,useRef as l,useState as o}from\"react\";import{motion as s,useScroll as c,useSpring as d,useTransform as f}from\"framer-motion\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function u(r){let i=l(null),u=l(null),a=l(null),[h,m]=o(0),[p,v]=o(0);n(()=>{m(u.current.scrollWidth);let e=new ResizeObserver(e=>{for(let t of e)v(t.contentRect.width),m(u.current.scrollWidth);});e.observe(a.current);let t=new MutationObserver(e=>{for(let t of e)m(u.current.scrollWidth);});return t.observe(u.current,{attributes:!0,attributeFilter:[\"style\"]}),()=>{e.disconnect(),t.disconnect();};},[]);let{scrollYProgress:y}=c({target:i}),b=f(y,[0,1],[0,-h+p]),w=d(b,{damping:60,mass:1,stiffness:500});return /*#__PURE__*/t(\"div\",{ref:i,...r,children:[/*#__PURE__*/e(\"div\",{style:{position:\"sticky\",top:0},children:/*#__PURE__*/e(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/e(s.div,{ref:u,style:{x:w},children:r.children})})}),/*#__PURE__*/e(\"div\",{ref:a,\"aria-hidden\":\"true\",style:{width:\"100%\",height:h}})]});}r(u,{children:{type:i.ComponentInstance}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HorizontalScroll\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HorizontalScroll.map"],
  "mappings": "iJAMkB,SAARA,E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