mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Improve thumbnail caching and fade-in
This commit is contained in:
1 parent
efa68321df
commit
0de68cbd6b
2 files changed
+85
-6
No files matched your search
@@ -90,11 +90,29 @@ header img {
|
||||
}
|
||||
}
|
||||
|
||||
[data-video-thumbnail][data-thumbnail-loaded="true"] {
|
||||
animation: video-thumbnail-fade-in 220ms ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes video-thumbnail-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.video-card--enter {
|
||||
opacity: 1;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
[data-video-thumbnail][data-thumbnail-loaded="true"] {
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.video-card:hover {
|
||||
|
||||
Reference in new issue
Block a user