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;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
animation-name: animTitle;
|
||||
animation-iteration-count: infinite;
|
||||
animation-duration: 2s;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -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%;";
|
||||
|
|
Reference in a new issue