mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 05:13:01 +00:00
Stop re-triggering interface fade-ins
This commit is contained in:
1 parent
e90f903b01
commit
35969b0fc6
4 files changed
+67
-7
No files matched your search
+34
-1
@@ -103,8 +103,41 @@ header img {
|
||||
}
|
||||
}
|
||||
|
||||
/* Generic fade-in utility for interface elements */
|
||||
.fade-in {
|
||||
opacity: 0;
|
||||
animation: interface-fade-in 280ms ease-out forwards;
|
||||
animation-delay: var(--fade-in-delay, 0ms);
|
||||
}
|
||||
|
||||
.fade-in-delay-100 {
|
||||
--fade-in-delay: 100ms;
|
||||
}
|
||||
|
||||
.fade-in-delay-200 {
|
||||
--fade-in-delay: 200ms;
|
||||
}
|
||||
|
||||
.fade-in-delay-300 {
|
||||
--fade-in-delay: 300ms;
|
||||
}
|
||||
|
||||
.fade-in-delay-400 {
|
||||
--fade-in-delay: 400ms;
|
||||
}
|
||||
|
||||
@keyframes interface-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.video-card--enter {
|
||||
.video-card--enter,
|
||||
.fade-in {
|
||||
opacity: 1;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user