Phase 6: scoreboard visibility toggle and reveal mode
- setVisibility: visible / frozen / hidden. Freezing snapshots the scores on the server with the same engine the scoreboard uses; freezing twice keeps the original snapshot. - Reveal mode: start, reveal next (last place first, one click per team), finish (sets visible) and cancel. The host sees who is next; the scoreboard plays a visual drum-roll for teams revealed while watching. - H cycles visibility in the control room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+42
-4
@@ -32,20 +32,58 @@ body {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Scoreboard: a newly revealed team pops in. */
|
||||
/* Scoreboard reveal: a shaking "?" covers the row for a beat (the drum-roll), then the
|
||||
cover fades and the team pops in. */
|
||||
@keyframes reveal-in {
|
||||
from {
|
||||
0%,
|
||||
70% {
|
||||
transform: scale(1);
|
||||
}
|
||||
82% {
|
||||
transform: scale(1.04);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes reveal-cover {
|
||||
0%,
|
||||
70% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0.92);
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes reveal-shake {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateX(-0.5vh) rotate(-4deg);
|
||||
}
|
||||
50% {
|
||||
transform: translateX(0.5vh) rotate(4deg);
|
||||
}
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--animate-reveal-in: reveal-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
||||
--animate-reveal-in: reveal-in 1800ms ease-out both;
|
||||
}
|
||||
|
||||
.reveal-cover {
|
||||
animation: reveal-cover 1800ms ease-out both;
|
||||
}
|
||||
|
||||
.reveal-shake {
|
||||
display: inline-block;
|
||||
animation: reveal-shake 140ms ease-in-out infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.animate-reveal-in {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.reveal-cover {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user