mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
feat(ui): implement marquee title and mobile active state for video cards
- Add marquee scrolling logic to VideoCard.js using ResizeObserver and CSS animations - Implement mobile active state detection using IntersectionObserver with a centered rootMargin (-25%) - Update CSS to apply active state styles (backdrop blur, shadow) via data-mobile-active attribute - Fix mobile layout overflow issues by enforcing min-width: 0 on flex containers - Ensure title text color changes to accent on active/hover state
This commit is contained in:
1 parent
c443865187
commit
4aa4fb0935
3 files changed
+10
-8
No files matched your search
@@ -1130,7 +1130,8 @@
|
||||
}
|
||||
|
||||
.card:hover,
|
||||
.card:focus-within {
|
||||
.card:focus-within,
|
||||
.card[data-mobile-active="true"] {
|
||||
--video-card-lift-translate-y: var(--motion-video-card-hover-translate);
|
||||
--video-card-backdrop-opacity: 0.425;
|
||||
--video-card-backdrop-translate-y: var(
|
||||
@@ -1162,7 +1163,8 @@
|
||||
}
|
||||
|
||||
.video-card__title:hover,
|
||||
.video-card__title:focus-visible {
|
||||
.video-card__title:focus-visible,
|
||||
.card[data-mobile-active="true"] .video-card__title {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user