NQ6 is now 'earning' money

This commit is contained in:
2024-09-01 23:57:28 +02:00
parent ddad696f4f
commit 94038d4f6c
4 changed files with 68 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ body{
background: #555;
}
img{
#dice{
width: 100px;
height: 100px;
margin: 1.25rem;
@@ -135,4 +135,47 @@ button{
.result{
font-size: 45px;
}
}
.cash{
position: absolute;
left: 0;
top: 0;
background: #222222cc;
padding: .5rem;
border-radius: 0 0 1rem 0;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
}
.cash img{
margin-right: .5rem;
aspect-ratio: 1/1;
object-fit: contain;
}
.coins{
position: absolute;
color: red;
z-index: 5;
user-select: none;
left: 135px;
top: 17px;
transform: translate(-50%, -50%);
animation: money .15s ease-in;
}
@keyframes money{
from{
transform: translate(-50%, -50%);
opacity: 1;
top: 17px;
}
to{
transform: translate(-50%, -50%);
opacity: 0;
top: -10px;
}
}