{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/dIfhgzRx1SSD5A4mODKd/D2Y9wNECvlWXMEB3FoYW/Levitate.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useAnimation}from\"framer-motion\";import{useEffect}from\"react\";// Control height of levitation\nconst maxHeight=-21// max height\n;const minHeight=-8// min height\n;// Animation Controls\nconst duration=5;const times=[0,.5,1];const ease=\"easeInOut\";const repeat=Infinity;// Float to a specific value\nexport function withSpecificValue(Component){return props=>{const controls=useAnimation();useEffect(()=>{controls.start({y:[0,maxHeight,0],transition:{duration:duration,times:times,ease:ease,repeat:repeat}});},[controls]);return /*#__PURE__*/_jsx(Component,{...props,as:motion.div,animate:controls});};}// Float to a random value\nexport function withRandomValue(Component){return props=>{const controls=useAnimation();useEffect(()=>{const randomHeight=Math.floor(Math.random()*(maxHeight-minHeight+1))+minHeight;controls.start({y:[0,randomHeight,0],transition:{duration:duration,times:times,ease:ease,repeat:repeat}});},[controls]);return /*#__PURE__*/_jsx(Component,{...props,as:motion.div,animate:controls});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSpecificValue\":{\"type\":\"reactHoc\",\"name\":\"withSpecificValue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomValue\":{\"type\":\"reactHoc\",\"name\":\"withRandomValue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Levitate.map"],
  "mappings": "8DACA,IAAMA,EAAU,IACTC,EAAU,GAEXC,EAAS,EAAQC,EAAM,CAAC,EAAE,GAAG,CAAC,EAAQC,EAAK,YAAkBC,EAAO,IAEnE,SAASC,EAAgBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAASC,EAAa,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAa,KAAK,MAAM,KAAK,OAAO,GAAGC,EAAUC,EAAU,EAAE,EAAEA,EAAUL,EAAS,MAAM,CAAC,EAAE,CAAC,EAAEG,EAAa,CAAC,EAAE,WAAW,CAAC,SAASG,EAAS,MAAMC,EAAM,KAAKC,EAAK,OAAOC,CAAM,CAAC,CAAC,CAAE,EAAE,CAACT,CAAQ,CAAC,EAAsBU,EAAKZ,EAAU,CAAC,GAAGC,EAAM,GAAGY,EAAO,IAAI,QAAQX,CAAQ,CAAC,CAAE,CAAE",
  "names": ["maxHeight", "minHeight", "duration", "times", "ease", "repeat", "withRandomValue", "Component", "props", "controls", "useAnimation", "ue", "randomHeight", "maxHeight", "minHeight", "duration", "times", "ease", "repeat", "p", "motion"]
}
