yo2
This commit is contained in:
parent
2c3f26b056
commit
236404869c
1 changed files with 4 additions and 4 deletions
|
@ -86,10 +86,10 @@
|
|||
header.style.transform = "translate(" + x + "px, " + y + "px)";// rotate(" + (Math.cos(t) * -5) + "deg)";
|
||||
|
||||
header.style.textShadow = (Math.cos(t - 0.2) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #c91a29,"
|
||||
+ (Math.cos(t - 0.4) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #c94f1a,"
|
||||
+ (Math.cos(t - 0.6) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #a6c91a,"
|
||||
+ (Math.cos(t - 0.8) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #1ac95a,"
|
||||
+ (Math.cos(t - 1.0) * 20 - x) + "px " + (Math.sin(t - 0.2) * 20 - y) + "px #1a60c9";
|
||||
+ (Math.cos(t - 0.4) * 20 - x) + "px " + (Math.sin(t - 0.4) * 20 - y) + "px #c94f1a,"
|
||||
+ (Math.cos(t - 0.6) * 20 - x) + "px " + (Math.sin(t - 0.6) * 20 - y) + "px #a6c91a,"
|
||||
+ (Math.cos(t - 0.8) * 20 - x) + "px " + (Math.sin(t - 0.8) * 20 - y) + "px #1ac95a,"
|
||||
+ (Math.cos(t - 1.0) * 20 - x) + "px " + (Math.sin(t - 1.0) * 20 - y) + "px #1a60c9";
|
||||
|
||||
// loop
|
||||
requestAnimationFrame(update);
|
||||
|
|
Reference in a new issue