test
This commit is contained in:
parent
289491585e
commit
3e94e05d37
1 changed files with 6 additions and 6 deletions
12
index.html
12
index.html
|
@ -83,13 +83,13 @@
|
|||
let x = Math.cos(t) * 20;
|
||||
let y = Math.sin(t) * 20;
|
||||
|
||||
header.style.transform = "translate(" + x + "px, " + y + "px) rotate(" + (Math.cos(t) * -5) + "deg)";
|
||||
header.style.transform = "translate(" + x + "px, " + y + "px)";// rotate(" + (Math.cos(t) * -5) + "deg)";
|
||||
|
||||
header.style.textShadow = `-4px 4px #c91a29,
|
||||
-8px 8px #c94f1a,
|
||||
-12px 12px #a6c91a,
|
||||
-16px 16px #1ac95a,
|
||||
-20px 20px #1a60c9`;
|
||||
header.style.textShadow = (Math.cos(t - 0.5) * 20 - x) + " " + (Math.sin(t - 0.5) * 20 - y) + " #c91a29,";
|
||||
//-8px 8px #c94f1a,
|
||||
//-12px 12px #a6c91a,
|
||||
//-16px 16px #1ac95a,
|
||||
//-20px 20px #1a60c9`;
|
||||
|
||||
// loop
|
||||
requestAnimationFrame(update);
|
||||
|
|
Reference in a new issue