slow DOWN
This commit is contained in:
parent
4d2f773dd2
commit
bd9a1dff30
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Reference in a new issue