diff --git a/index.html b/index.html index ca67b1b..34b9112 100644 --- a/index.html +++ b/index.html @@ -82,7 +82,9 @@ var header = document.getElementById("header"); async function update(timestamp) { - header.style.transform = "translate(" + (Math.cos(timestamp / 1000) * 20) + "px, " + (Math.sin(timestamp / 1000) * 20) + "px)"; + let t = timestamp / 500; + + header.style.transform = "translate(" + (Math.cos(t) * 20) + "px, " + (Math.sin(t) * 20) + "px) rotate(" + (Math.cos(t) * -10) + "deg)"; // loop requestAnimationFrame(update);