slow DOWN

This commit is contained in:
awesomeuser 2023-07-07 20:17:24 +00:00
parent 4d2f773dd2
commit bd9a1dff30

View file

@ -82,7 +82,7 @@
var header = document.getElementById("header"); var header = document.getElementById("header");
async function update(timestamp) { 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 // loop
requestAnimationFrame(update); requestAnimationFrame(update);