2048 animations

This commit is contained in:
2024-08-10 00:21:07 +02:00
parent 3d817969ed
commit c0f11339fc
3 changed files with 31 additions and 23 deletions

View File

@@ -35,18 +35,37 @@ hr{
flex-wrap: wrap;
}
.tile{
.tile {
position: relative;
width: 90px;
height: 90px;
border: 5px solid #bbada0;
font-size: 40px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out; /* Add smooth transitions */
}
.tile.new-tile {
animation: pop 0.2s ease-in-out;
}
@keyframes pop {
0% {
transform: scale(0.5);
}
100% {
transform: scale(1);
}
}
.arrowBack{
height: 90px;
width: 372px;