NGU-Web/src/pages/SchedulePresent.css
Zaldimmar d17e2596ba Present: a slide with more than the screen holds scrolls through it
The day overview, tag and block lists and the spotlight text hold, scroll to the end over the slide's seconds, then hold. The spotlight description is no longer cut at six lines. Reduced motion keeps them at the top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 03:21:44 -06:00

62 lines
1.2 KiB
CSS

/* The schedule presentation's motion (SchedulePresent.tsx). The
reduced motion rule in index.css stops all of it. */
.present-in {
animation: present-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.present-from-below {
--present-from: translateY(2rem);
}
.present-from-left {
--present-from: translateX(-3rem);
}
.present-from-right {
--present-from: translateX(3rem);
}
@keyframes present-in {
from {
opacity: 0;
transform: var(--present-from);
}
to {
opacity: 1;
transform: none;
}
}
/* The bar along the bottom: fills over the slide's seconds (set
inline as animation-duration). */
.present-timer {
animation: present-timer linear both;
}
@keyframes present-timer {
from {
width: 0;
}
to {
width: 100%;
}
}
/* A slide part taller than its room (Scroll): holds at the top,
moves up by --present-scroll, holds at the end. With reduced
motion it stays at the top. */
.present-scroll {
animation: present-scroll ease-in-out both;
}
@keyframes present-scroll {
0%,
15% {
transform: none;
}
85%,
100% {
transform: translateY(var(--present-scroll));
}
}
@media (prefers-reduced-motion: reduce) {
.present-scroll {
animation: none !important;
}
}