diff --git a/index.html b/index.html index e71a05d..a58d634 100644 --- a/index.html +++ b/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);