{"version":3,"file":"Examples.BhiDPblH.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/i77eooOMFJbP9cegMTVL/xzOQkXoUnAWm17A07OiC/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer\";export function TravellingLogo(){const{scrollY}=useScroll();// Dynamically calculate target Y based on current viewport\nconst navbarHeight=60// height of your sticky nav\n;const logoHeight=200// approximate height of your large logo\n;// How far up the logo needs to travel to sit at top\nconst targetY=-(window.innerHeight*0);const scale=useTransform(scrollY,[0,300],[1,.15]);const y=useTransform(scrollY,[0,300],[0,targetY]);return{style:{scale,y,transformOrigin:\"top center\"}};}// Usage: apply to any text element\n// It scales smoothly between min and max font sizes\n// based on viewport width\nfunction clamp(value,min,max){return Math.min(Math.max(value,min),max);}function fluidSize(minSize,maxSize,minWidth=375,maxWidth=1440){const vw=window.innerWidth;const scale=(vw-minWidth)/(maxWidth-minWidth);return clamp(minSize+(maxSize-minSize)*scale,minSize,maxSize);}// Headings — large display text\nexport function FluidHeading(){return{style:{fontSize:fluidSize(28,72)+\"px\",lineHeight:1.1}};}// Subheadings\nexport function FluidSubheading(){return{style:{fontSize:fluidSize(20,40)+\"px\",lineHeight:1.3}};}// Body text\nexport function FluidBody(){return{style:{fontSize:fluidSize(14,18)+\"px\",lineHeight:1.6}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withTravellingLogo(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TravellingLogo(props)});};}withTravellingLogo.displayName=\"TravellingLogo\";export function withFluidHeading(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FluidHeading(props)});};}withFluidHeading.displayName=\"FluidHeading\";export function withFluidSubheading(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FluidSubheading(props)});};}withFluidSubheading.displayName=\"FluidSubheading\";export function withFluidBody(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FluidBody(props)});};}withFluidBody.displayName=\"FluidBody\";\nexport const __FramerMetadata__ = {\"exports\":{\"withFluidHeading\":{\"type\":\"reactHoc\",\"name\":\"withFluidHeading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFluidBody\":{\"type\":\"reactHoc\",\"name\":\"withFluidBody\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FluidHeading\":{\"type\":\"override\",\"name\":\"FluidHeading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FluidBody\":{\"type\":\"override\",\"name\":\"FluidBody\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFluidSubheading\":{\"type\":\"reactHoc\",\"name\":\"withFluidSubheading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FluidSubheading\":{\"type\":\"override\",\"name\":\"FluidSubheading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TravellingLogo\":{\"type\":\"override\",\"name\":\"TravellingLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTravellingLogo\":{\"type\":\"reactHoc\",\"name\":\"withTravellingLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"kOAAsF,SAAgB,GAAgB,CAAC,GAAK,CAAC,WAAS,GAAW,CAI3I,EAAQ,EAAE,EAAO,YAAY,GAAuG,MAAM,CAAC,MAAM,CAAC,MAAtG,EAAa,EAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAuE,EAA9D,EAAa,EAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,EAAQ,CAAC,CAAuB,gBAAgB,aAAa,CAAC,CAG9L,SAAS,EAAM,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