Skip to content
Snippets Groups Projects
Commit eb70c6e8 authored by Peter Nerlich's avatar Peter Nerlich
Browse files

add moving scene

parent d26c1ae5
No related branches found
No related tags found
No related merge requests found
Pipeline #22261 passed
File added
...@@ -118,6 +118,18 @@ ...@@ -118,6 +118,18 @@
</div> </div>
</section> </section>
<section id="scene">
<div class="container">
<div class="row">
<div class="col-12">
<div class="embed-responsive embed-responsive-16by9 border rounded mb-5">
<video src="img/scene.webm" type="video/webm" class="img-fluid force-autoplay" playsinline autoplay loop onclick="this.play()"></video>
</div>
</div>
</div>
</div>
</section>
<section id="gallery" class="tm-section-pad-top"> <section id="gallery" class="tm-section-pad-top">
<div class="container tm-container-gallery"> <div class="container tm-container-gallery">
<div class="row"> <div class="row">
...@@ -161,14 +173,6 @@ ...@@ -161,14 +173,6 @@
</figcaption> </figcaption>
</figure> </figure>
</a> </a>
<a href="img/sheep.png">
<figure class="effect-honey tm-gallery-item">
<img src="img/sheep-crop.png" alt="Image" class="img-fluid">
<figcaption>
<h2><i>Ist das ein Konsens-Schaf?</i></h2>
</figcaption>
</figure>
</a>
<a href="img/bike.png"> <a href="img/bike.png">
<figure class="effect-honey tm-gallery-item"> <figure class="effect-honey tm-gallery-item">
<img src="img/bike-crop.png" alt="Image" class="img-fluid"> <img src="img/bike-crop.png" alt="Image" class="img-fluid">
...@@ -268,6 +272,25 @@ ...@@ -268,6 +272,25 @@
<script src="js/jquery.singlePageNav.min.js"></script> <script src="js/jquery.singlePageNav.min.js"></script>
<script src="js/bootstrap.min.js"></script> <script src="js/bootstrap.min.js"></script>
<script> <script>
let autoplay_forced = false;
function force_autoplay() {
if (!autoplay_forced) {
autoplay_forced = true;
document.querySelectorAll('video.force-autoplay').forEach(e => {
e.addEventListener('loadeddata', () => {
e.play();
});
e.play();
});
}
}
document.addEventListener('click', () => {
force_autoplay();
});
function getOffSet(){ function getOffSet(){
var _offset = 450; var _offset = 450;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment