I recently downloaded a JavaScript library called paroller.js that has allowed me to create a captivating parallax effect on my website.
The effect is based on a background image (forsidebillede2.jpg) that covers the entire screen, and I even managed to incorporate a Bootstrap navbar within this effect.
Now, I am interested in cycling through different background images, perhaps creating a carousel with 2-3 images, but I'm unsure of how to achieve this.
I assume it involves changing the CSS background every X seconds, but I haven't been able to figure it out yet.
<div class="jumbotron text-center bg-faded my-5" id="baggrundtop" style="background: url('media/forsidebillede2.jpg') no-repeat center; min-height:800px;" data-paroller-factor="0.5">
<!--Navbar-->
<nav class="navbar navbar-fixed-top navbar-expand-lg navbar-dark primary-color ">
<a href="#" class="navbar-left"><img src="media/lillelogo.png"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#basicExampleNav"
aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class ="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="basicExampleNav">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">References</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</nav>
</div>