#video-sequence { display: flex; justify-content: center; align-items: center; height: 100vh; } video { width: 100%; height: auto; opacity: 0; /* Startet unsichtbar */ transition: opacity 1s ease-in-out; /* Übergang für das Ein- und Ausblenden */ } video.show { opacity: 1; /* Wird eingeblendet */ } var video1 = document.getElementById('video1'); var video2 = document.getElementById('video2'); var video3 = document.getElementById('video3'); video1.classList.add('show'); video1.play(); video1.addEventListener('ended', function() { fadeOut(video1, function() { video2.style.display = 'block'; fadeIn(video2); video2.play(); }); }); video2.addEventListener('ended', function() { fadeOut(video2, function() { video3.style.display = 'block'; fadeIn(video3); video3.play(); }); }); video3.addEventListener('ended', function() { fadeOut(video3, function() { video1.style.display = 'block'; fadeIn(video1); video1.play(); }); }); function fadeIn(video) { video.classList.add('show'); } function fadeOut(video, callback) { video.classList.remove('show'); setTimeout(function() { video.style.display = 'none'; if (callback) callback(); }, 500); // Dauer des Fade-Out (0,5 Sekunde) }

Contact

You have questions, need further information, wish to talk with us or have a completely different request? Do not hesitate to call us or send us a message via the contact form below. We look forward to hearing from you!