mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
Set random delay for background animation
This commit is contained in:
@@ -12,7 +12,7 @@ function jumpPoints() {
|
|||||||
for (let i = 0; i < points.value.length; i++)
|
for (let i = 0; i < points.value.length; i++)
|
||||||
points.value[i] = [jumpVal(points.value[i][0]), jumpVal(points.value[i][1])]
|
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())
|
onMounted(() => jumpPoints())
|
||||||
|
|||||||
Reference in New Issue
Block a user