Home: two-window explainer, code settings tucked away; projector: light entrance and exit motion
This commit is contained in:
@@ -88,3 +88,28 @@ body.screen {
|
||||
.s-main.split .s-steps .entry { grid-column: 1; grid-row: auto; }
|
||||
}
|
||||
.qr-wrap.ring .tick { display: none; }
|
||||
|
||||
/* light motion: blocks rise in, fade out, the question lands piece by piece, result bars grow */
|
||||
@keyframes s-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
|
||||
@keyframes s-out { to { opacity: 0; transform: translateY(-8px); } }
|
||||
@keyframes s-grow { from { transform: scaleX(0); } }
|
||||
@keyframes s-bump { 40% { transform: scale(1.18); } }
|
||||
.s-main:not(.split) > section { grid-area: 1 / 1; }
|
||||
.s-main > section:not([hidden]), .entry:not([hidden]) { animation: s-in .5s cubic-bezier(.2, .7, .2, 1) both; }
|
||||
.s-main > section.leaving, .entry.leaving { animation: s-out .22s ease both; }
|
||||
#focus.enter .q-text { animation: s-in .5s cubic-bezier(.2, .7, .2, 1) both; }
|
||||
#focus.enter .opts li, #focus.enter .bar-row { animation: s-in .45s cubic-bezier(.2, .7, .2, 1) both; }
|
||||
#focus.enter :is(.opts li, .bar-row):nth-child(1) { animation-delay: .08s; }
|
||||
#focus.enter :is(.opts li, .bar-row):nth-child(2) { animation-delay: .14s; }
|
||||
#focus.enter :is(.opts li, .bar-row):nth-child(3) { animation-delay: .2s; }
|
||||
#focus.enter :is(.opts li, .bar-row):nth-child(4) { animation-delay: .26s; }
|
||||
#focus.enter :is(.opts li, .bar-row):nth-child(n+5) { animation-delay: .32s; }
|
||||
#focus.enter .turnout, #focus.enter .results-foot, #focus.enter .status { animation: s-in .45s .3s cubic-bezier(.2, .7, .2, 1) both; }
|
||||
#focus.enter .bar-fill { transform-origin: left; animation: s-grow .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
|
||||
.turnout .progress > div { transition: width .5s cubic-bezier(.2, .7, .2, 1); }
|
||||
#voters { display: inline-block; }
|
||||
#voters.bump { animation: s-bump .35s ease; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.s-main > section, .entry, #focus.enter *, #voters.bump { animation: none !important; }
|
||||
.turnout .progress > div { transition: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user