feat(projects): video de rolagem na capa dos cards, carregado so quando o card aparece

video autoplay muted loop playsinline preload=none com poster; as fontes entram
via IntersectionObserver e o video pausa fora da tela. Com prefers-reduced-motion
aparece so o poster.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
Evandro Fonseca JuniorandClaude Sonnet 5.5 committed 2026-10-08 11:33:17 -03:00
1 parent ca9c0604b8
commit a67892613b
6 files changed
+276 -2

No files matched your search

+8 -2
View File
@@ -1284,7 +1284,12 @@ html.lenis {
border: 1px solid var(--border);
background: var(--ink);
& img {
& video {
display: block;
}
& img,
& video {
width: 100%;
height: 100%;
object-fit: cover;
@@ -1292,7 +1297,8 @@ html.lenis {
transition: transform 0.7s var(--ease-out);
}
.ds-card:hover & img {
.ds-card:hover & img,
.ds-card:hover & video {
transform: scale(1.035);
}
}