diff --git a/index.html b/index.html index 8aaa73d..f6c5e5f 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@
or call 778‑985‑OPEN (6736)
@@ -374,6 +374,7 @@ Cal("init", { origin: "https://cal.shopwisdom.ca" }); var src = hv.getAttribute('data-src'); if (!src) return; var s = document.createElement('source'); s.src = src; s.type = 'video/webm'; hv.appendChild(s); hv.load(); + hv.addEventListener('playing', function () { hv.classList.add('is-playing'); }, { once: true }); var p = hv.play(); if (p && p.catch) p.catch(function () {}); })(); diff --git a/style.css b/style.css index 1995bf4..b1b4d78 100644 --- a/style.css +++ b/style.css @@ -130,7 +130,8 @@ a.tel { text-decoration: none; } /* Hero split — text left, ambient loop right. Poster-first + paper fallback = never blank. */ .hero-wrap { display: grid; grid-template-columns: 1.05fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; } .hero-media { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; } -.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; } +.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .8s ease; } +.hero-video.is-playing { opacity: 1; } @media (max-width: 860px) { .hero-wrap { grid-template-columns: 1fr; gap: 2.2rem; } .hero-media { aspect-ratio: 16 / 10; max-height: 320px; }