From 846638edb581fc4330c2a2fa1fdbd1bc09f36354 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 26 Feb 2024 20:22:43 +0100 Subject: [PATCH] Set random delay for background animation --- src/components/Background.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Background.vue b/src/components/Background.vue index 7a3587c..22e8ecb 100644 --- a/src/components/Background.vue +++ b/src/components/Background.vue @@ -12,7 +12,7 @@ function jumpPoints() { for (let i = 0; i < points.value.length; i++) points.value[i] = [jumpVal(points.value[i][0]), jumpVal(points.value[i][1])] - timeout = setTimeout(jumpPoints, 2000) + timeout = setTimeout(jumpPoints, Math.random() * 1000) } onMounted(() => jumpPoints())