yo?
This commit is contained in:
parent
c759f008e9
commit
2c3f26b056
1 changed files with 5 additions and 5 deletions
10
index.html
10
index.html
|
@ -85,11 +85,11 @@
|
||||||
|
|
||||||
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 = (Math.cos(t - 0.5) * 20 - x) + "px " + (Math.sin(t - 0.5) * 20 - y) + "px #c91a29";
|
header.style.textShadow = (Math.cos(t - 0.2) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #c91a29,"
|
||||||
//-8px 8px #c94f1a,
|
+ (Math.cos(t - 0.4) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #c94f1a,"
|
||||||
//-12px 12px #a6c91a,
|
+ (Math.cos(t - 0.6) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #a6c91a,"
|
||||||
//-16px 16px #1ac95a,
|
+ (Math.cos(t - 0.8) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #1ac95a,"
|
||||||
//-20px 20px #1a60c9`;
|
+ (Math.cos(t - 1.0) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #1a60c9";
|
||||||
|
|
||||||
// loop
|
// loop
|
||||||
requestAnimationFrame(update);
|
requestAnimationFrame(update);
|
||||||
|
|
Reference in a new issue