add animation for button
This commit is contained in:
parent
1eab30c78d
commit
ceb6dcc546
2 changed files with 9 additions and 3 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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%;";
|
||||||
|
|
Reference in a new issue