diff --git a/vorschau/js/app.js b/vorschau/js/app.js index 14c5b4b..97a3977 100644 --- a/vorschau/js/app.js +++ b/vorschau/js/app.js @@ -64,7 +64,14 @@ if (heroDots[oldIndex]) heroDots[oldIndex].classList.remove('active'); var vc = document.getElementById('hero-video-container'); - if (vc) vc.classList.toggle('hidden', index !== 0); + if (vc) { + vc.classList.toggle('hidden', index !== 0); + var vid = vc.querySelector('video'); + if (vid) { + if (index === 0) vid.play(); + else vid.pause(); + } + } setTimeout(function () { heroSlides[oldIndex].classList.remove('exiting');