feat(ui): added working animations ui
Added animations
This commit is contained in:
@@ -109,8 +109,22 @@ body {
|
|||||||
&:nth-child(7) { animation-delay: 3.5s; }
|
&:nth-child(7) { animation-delay: 3.5s; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#card-slide {
|
||||||
|
div {
|
||||||
|
animation: slideIn 0.5s ease-out forwards;
|
||||||
|
animation-fill-mode: backwards;
|
||||||
|
&:nth-child(1) { animation-delay: 0.5s; }
|
||||||
|
&:nth-child(2) { animation-delay: 1s; }
|
||||||
|
&:nth-child(3) { animation-delay: 1.5s; }
|
||||||
|
&:nth-child(4) { animation-delay: 2s; }
|
||||||
|
&:nth-child(5) { animation-delay: 2.5s; }
|
||||||
|
&:nth-child(6) { animation-delay: 3s; }
|
||||||
|
&:nth-child(7) { animation-delay: 3.5s; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#cardsplayed {
|
#cardsplayed {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Player Hand at the BOTTOM -->
|
<!-- Player Hand at the BOTTOM -->
|
||||||
<div class="row justify-content-center g-2 mt-4">
|
<div class="row justify-content-center g-2 mt-4" id="card-slide">
|
||||||
@for(i <- player.currentHand().get.cards.indices) {
|
@for(i <- player.currentHand().get.cards.indices) {
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<form action="@(routes.IngameController.playCard(gamelobby.id))" method="post" class="m-0 p-0">
|
<form action="@(routes.IngameController.playCard(gamelobby.id))" method="post" class="m-0 p-0">
|
||||||
|
|||||||
Reference in New Issue
Block a user