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; text-align: center;
font-family: sans-serif; font-family: sans-serif;
} }
button:hover {
animation-name: animTitle;
animation-iteration-count: infinite;
animation-duration: 2s;
}
</style> </style>
</head> </head>

View file

@ -11,9 +11,9 @@ const main = () => {
let titleGame = document.createElement("h1"); let titleGame = document.createElement("h1");
titleGame.textContent = "GeometryDash 3D"; titleGame.textContent = "GeometryDash 3D";
titleGame.style = titleGame.style =
"-webkit-animation-name: animTitle; \ "animation-name: animTitle; \
-webkit-animation-iteration-count: infinite; \ animation-iteration-count: infinite; \
-webkit-animation-duration: 2s; \ animation-duration: 2s; \
background: none; \ background: none; \
color: white; \ color: white; \
font-size: 400%;"; font-size: 400%;";