mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-02-01 02:26:53 -06:00
feat: add responsive tag overflow with dynamic video/image backgrounds
- TagList component with binary search overflow calculation and +N pill - ProjectCard background media layer with gradient mask and hover effects - Random video/image selection per card with play on hover - Responsive tag wrapping with ResizeObserver
This commit is contained in:
@@ -175,3 +175,18 @@ html.dark {
|
||||
::view-transition-new(page-content) {
|
||||
animation: vt-slide-from-right 250ms cubic-bezier(0.4, 0, 0.2, 1) both;
|
||||
}
|
||||
|
||||
/* Media mask for project card background images/videos - fades from transparent (left) to solid (right) */
|
||||
.media-mask-fade-left {
|
||||
mask-image: linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
/* Non-linear stops to help breakup the gradient better */
|
||||
rgba(0, 0, 0, 0.08) 12%,
|
||||
rgba(0, 0, 0, 0.2) 22%,
|
||||
rgba(0, 0, 0, 0.4) 32%,
|
||||
rgba(0, 0, 0, 0.65) 42%,
|
||||
rgba(0, 0, 0, 0.85) 52%,
|
||||
black 65%
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user