diff --git a/client/src/utils.jsx b/client/src/utils.jsx index f8547ac0..add2dddf 100644 --- a/client/src/utils.jsx +++ b/client/src/utils.jsx @@ -60,14 +60,14 @@ const animations = {}; function animateCryp(id) { if (animations[id]) return false; animations[id] = true; + const duration = anime.random(2000, 20000); const target = document.getElementById(id); return anime({ targets: target, translateX: () => anime.random(-20, 20), translateY: () => anime.random(0, -40), rotate: () => anime.random(-15, 15), - duration: () => anime.random(2000, 5000), - delay: () => anime.random(0, 2000), + duration, direction: 'alternate', easing: 'linear', loop: true,