From bd9a1dff30f3dad01371285217114a270ede9e65 Mon Sep 17 00:00:00 2001 From: awesomeuser Date: Fri, 7 Jul 2023 20:17:24 +0000 Subject: [PATCH] slow DOWN --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 93f5915..ca67b1b 100644 --- a/index.html +++ b/index.html @@ -82,7 +82,7 @@ var header = document.getElementById("header"); async function update(timestamp) { - header.style.transform = "translate(" + (Math.cos(timestamp) * 20) + "px, " + (Math.sin(timestamp) * 20) + "px)"; + header.style.transform = "translate(" + (Math.cos(timestamp / 1000) * 20) + "px, " + (Math.sin(timestamp / 1000) * 20) + "px)"; // loop requestAnimationFrame(update);