add animation for button

This commit is contained in:
Mylloon 2022-12-03 22:24:15 +01:00
parent 1eab30c78d
commit ceb6dcc546
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 9 additions and 3 deletions

View file

@ -33,6 +33,12 @@
text-align: center;
font-family: sans-serif;
}
button:hover {
animation-name: animTitle;
animation-iteration-count: infinite;
animation-duration: 2s;
}
</style>
</head>

View file

@ -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%;";