diff --git a/index.html b/index.html index cbb00e9..49340b2 100644 --- a/index.html +++ b/index.html @@ -33,6 +33,12 @@ text-align: center; font-family: sans-serif; } + + button:hover { + animation-name: animTitle; + animation-iteration-count: infinite; + animation-duration: 2s; + } diff --git a/js/main.js b/js/main.js index 5c4bebb..0d01a5b 100644 --- a/js/main.js +++ b/js/main.js @@ -11,9 +11,9 @@ const main = () => { let titleGame = document.createElement("h1"); titleGame.textContent = "GeometryDash 3D"; titleGame.style = - "-webkit-animation-name: animTitle; \ - -webkit-animation-iteration-count: infinite; \ - -webkit-animation-duration: 2s; \ + "animation-name: animTitle; \ + animation-iteration-count: infinite; \ + animation-duration: 2s; \ background: none; \ color: white; \ font-size: 400%;";