{"version":3,"file":"Float_1.BEMq__OF.mjs","names":["e","a","r"],"sources":["https:/framerusercontent.com/modules/d79XeDhzaureRK3lp4Nh/Brx2fTH5z9nEubnhrYxE/Float_1.js"],"sourcesContent":["import{jsx as t}from\"react/jsx-runtime\";import{motion as r,useAnimation as e}from\"framer-motion\";import{useEffect as a}from\"react\";// Control height of levitation\nlet i=-42// max height\n,n=-15// min height\n,o=5,m=[0,.5,1],s=\"easeInOut\",u=1/0;// Float to a specific value\nexport function withSpecificValue(i){return n=>{let o=e();return a(()=>{o.start({y:[0,-42,0],transition:{duration:5,times:m,ease:s,repeat:u}});},[o]),/*#__PURE__*/t(i,{...n,as:r.div,animate:o});};}// Float to a random value\nexport function withRandomValue(i){return n=>{let o=e();return a(()=>{o.start({y:[0,Math.floor(-26*Math.random())+-15,0],transition:{duration:5,times:m,ease:s,repeat:u}});},[o]),/*#__PURE__*/t(i,{...n,as:r.div,animate:o});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomValue\":{\"type\":\"reactHoc\",\"name\":\"withRandomValue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpecificValue\":{\"type\":\"reactHoc\",\"name\":\"withSpecificValue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Float_1.map"],"mappings":"6PAKA,SAAgB,EAAgB,EAAE,CAAC,MAAO,IAAG,CAAC,IAAI,EAAEA,GAAG,CAAC,OAAOC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,MAAM,IAAI,KAAK,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAG,CAAC,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,GAAG,EAAE,GAAGC,EAAE,IAAI,QAAQ,EAAE,CAAC,yBALrL,IAAyD,IAAkC,CAG9H,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE"}