loaylty card css

This commit is contained in:
Paul Fresnel
2024-11-07 14:13:37 +01:00
parent 4f8103e1dc
commit 14976b14bf
6 changed files with 70 additions and 0 deletions
+43
View File
@@ -2,12 +2,55 @@
@tailwind components;
@tailwind utilities;
html {
scroll-behavior: smooth;
}
body {
@apply bg-bakery-50 text-bakery-900;
opacity: 0;
animation: fadeIn 0.5s ease-in forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@layer components {
.container {
@apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}
}
/* Add card flip animation */
.card-container {
perspective: 1000px;
}
.card {
transition: transform 0.8s;
transform-style: preserve-3d;
}
.card:hover {
transform: rotateY(180deg);
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.card-back {
transform: rotateY(180deg);
}