make it look slightly better
This commit is contained in:
parent
c9ea9c9922
commit
8ba9640398
1 changed files with 3 additions and 3 deletions
|
@ -9,17 +9,17 @@
|
||||||
on:click={() => (statusOfCard.flipped = !statusOfCard.flipped)}
|
on:click={() => (statusOfCard.flipped = !statusOfCard.flipped)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class={`relative h-full w-full transition-transform duration-500 [transform-style:preserve-3d] ${statusOfCard.flipped ? "rotate-y-180" : ""} ${statusOfCard.exiting ? (statusOfCard.exitingToRight? "card-exit-right" : "card-exit-left") : ""} ${statusOfCard.entering ? "card-enter" : ""} `}
|
class={`relative h-full w-full transition-transform duration-500 transform-3d ${statusOfCard.flipped ? "rotate-y-180" : ""} ${statusOfCard.exiting ? (statusOfCard.exitingToRight ? "card-exit-right" : "card-exit-left") : ""} ${statusOfCard.entering ? "card-enter" : ""} `}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="absolute flex h-full w-full flex-col items-center justify-center gap-5 rounded border-2 bg-blue-800 text-5xl text-white [backface-visibility:hidden]"
|
class="absolute flex h-full w-full flex-col items-center justify-center gap-5 rounded border-2 bg-blue-800 p-4 text-5xl text-white [backface-visibility:hidden]"
|
||||||
>
|
>
|
||||||
<span class="text-3xl text-blue-600">Question</span>
|
<span class="text-3xl text-blue-600">Question</span>
|
||||||
{card.Q}
|
{card.Q}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="absolute flex h-full w-full rotate-y-180 flex-col items-center justify-center gap-5 rounded border-2 bg-green-800 text-5xl text-white [backface-visibility:hidden]"
|
class="absolute flex h-full w-full rotate-y-180 flex-col items-center justify-center gap-5 rounded border-2 bg-green-800 p-4 text-5xl text-white [backface-visibility:hidden]"
|
||||||
>
|
>
|
||||||
<span class="text-3xl text-green-600">Answer</span>
|
<span class="text-3xl text-green-600">Answer</span>
|
||||||
{card.a}
|
{card.a}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue