{"version":3,"file":"Examples.6Z46Gh7E.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1mwEqGLoZFYKztrdQ940/zNb25n0qgCu7zUKlbp5A/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withRandomRotation(Component){return props=>{// Fonction pour générer un angle de rotation aléatoire entre -180 et 180 degrés\nconst getRandomRotation=()=>{return Math.random()*360-180;};// Valeur initiale de rotation\nconst initialRotation=getRandomRotation();return /*#__PURE__*/_jsx(Component,{...props,initial:{opacity:0,rotate:initialRotation},animate:{opacity:1,rotate:[initialRotation,initialRotation*-.7,initialRotation*.5,initialRotation*-.3,initialRotation]},transition:{opacity:{duration:.8,delay:.4},rotate:{duration:60+Math.random()*40,ease:\"easeInOut\",repeat:Infinity,repeatType:\"reverse\",delay:.4}}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomRotation\":{\"type\":\"reactHoc\",\"name\":\"withRandomRotation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"oGAA2C,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAEvG,IAAM,OAD8B,KAAK,QAAQ,CAAC,IAAI,MACb,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAgB,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAgB,EAAgB,IAAI,EAAgB,GAAG,EAAgB,IAAI,EAAgB,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,QAAQ,CAAC,GAAG,KAAK,YAAY,OAAO,IAAS,WAAW,UAAU,MAAM,GAAG,CAAC,CAAC,CAAC,mBAFjW"}