FortuneWheelView.css 3.1 Ko
Télécharger le fichier
@keyframes wheelPop {
from {
transform: scale(0.35);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes wheelConfettiFall {
0% {
transform: translate(0, -10%) rotate(0deg);
opacity: 1;
}
100% {
transform: translate(var(--drift), 320px) rotate(720deg);
opacity: 0;
}
}
@keyframes wheelGlow {
0%,
100% {
box-shadow: 0 0 18px 4px rgba(255, 211, 77, 0.55);
}
50% {
box-shadow: 0 0 30px 10px rgba(255, 211, 77, 0.9);
}
}
.wheel-win-reveal {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 18px;
background: rgba(12, 18, 22, 0.48);
backdrop-filter: blur(1px);
-webkit-backdrop-filter: blur(1px);
}
.wheel-win-reveal.is-rare {
background: rgba(12, 11, 18, 0.70);
}
.wheel-win-reveal.is-quiet {
background: rgba(12, 18, 22, 0.34);
}
.wheel-win-card {
display: flex;
width: min(260px, 86%);
min-height: 92px;
align-items: center;
gap: 12px;
padding: 12px 14px;
border: 2px solid rgba(255, 255, 255, 0.90);
border-radius: 10px;
background: linear-gradient(180deg, #fff7d9 0%, #f0d58f 100%);
box-shadow:
0 9px 0 rgba(53, 62, 66, 0.35),
0 16px 28px rgba(0, 0, 0, 0.35),
inset 0 1px 0 rgba(255, 255, 255, 0.85);
animation: wheelPop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.wheel-win-card.is-rare {
animation:
wheelPop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28),
wheelGlow 1.4s ease-in-out 0.5s infinite;
}
.wheel-win-card.is-quiet {
width: min(230px, 82%);
min-height: 78px;
justify-content: center;
background: linear-gradient(180deg, #f9fbfc 0%, #dce5ea 100%);
}
.wheel-win-icon {
display: flex;
width: 66px;
height: 66px;
flex-shrink: 0;
align-items: center;
justify-content: center;
overflow: hidden;
border: 2px solid rgba(70, 83, 89, 0.30);
border-radius: 50%;
background: radial-gradient(circle at 35% 25%, #ffffff 0%, #eef5f8 55%, #c9d7de 100%);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.90),
0 2px 4px rgba(0, 0, 0, 0.18);
}
.wheel-win-icon.is-empty {
color: #6c7c84;
font-size: 28px;
font-weight: 900;
}
.wheel-win-copy {
min-width: 0;
flex: 1;
text-align: left;
}
.wheel-win-title,
.wheel-win-jackpot {
color: #ffffff;
font-weight: 900;
text-shadow:
0 1px 0 #27323a,
0 2px 4px rgba(0, 0, 0, 0.45);
}
.wheel-win-card .wheel-win-title {
color: #35424a;
font-size: 15px;
line-height: 1.05;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.wheel-win-prize {
max-width: 100%;
margin-top: 4px;
overflow: hidden;
color: #111c22;
font-size: 18px;
font-weight: 900;
line-height: 1.05;
text-overflow: ellipsis;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
white-space: nowrap;
}
.wheel-win-jackpot {
color: #ffd34d;
font-size: 12px;
letter-spacing: 0.14em;
text-transform: uppercase;
}
