I am aiming to implement a zoom in "Ken Burns" effect and a crossfade transition between slides using Bootstrap 4 carousel. The zoom effect should last for 6 seconds, while the fading transition should be completed in 1 second. Additionally, I want the carousel to loop seamlessly from the last slide to the first one without any noticeable interruption.
While the zoom effect is working well, there seems to be a slight "jump" in my demo, and the fading transition is not functioning correctly. Any assistance with resolving these issues would be greatly appreciated. Thank you!
Demo
HTML
<div class="carousel slide carousel-fade" data-ride="carousel" data-interval="6000">
<!--======= Wrapper for Slides =======-->
<div class="carousel-inner">
<!--========= First Slide =========-->
<div class="carousel-item active" style="background-image: url('https://i.picsum.photos/id/878/1920/1680.jpg?hmac=_FQShv6E5HdjI6OKgjozFJQz8SXlT1OwmqijW5jHGQo')">
</div>
<!--========= Second Slide =========-->
<div class="carousel-item" style="background-image: url('https://i.picsum.photos/id/874/1920/1680.jpg?hmac=KDczwg-ejraLUmoflMNUBCkt1LyLxNreJptc7RQajFY')">
</div>
<!--========= Third Slide =========-->
<div class="carousel-item" style="background-image: url('https://i.picsum.photos/id/870/1920/1680.jpg?hmac=IAkVJX2zYS6BuaMLixYh5xoyOpeDH5WkcGTacBUPPXM')">
</div>
</div>
</div>
CSS
.carousel-inner>.carousel-item {
margin:auto;
height: 100vh;
width:100%;
-webkit-transform-origin:50% 50%;
-moz-transform-origin:50% 50%;
-ms-transform-origin:50% 50%;
-o-transform-origin:50% 50%;
transform-origin:50% 50%;
-webkit-animation:kenburns 6000ms linear 0s infinite;
animation:kenburns 6000ms linear 0s infinite
}
@-webkit-keyframes kenburns {
0% {
-webkit-transform:scale(1);
-webkit-transition:-webkit-transform 6000ms linear 0s
}
100% {
-webkit-transform:scale(1.1);
-webkit-transition:-webkit-transform 6000ms linear 0s
}
}
@-moz-keyframes kenburns {
0% {
-moz-transform:scale(1);
-moz-transition:-moz-transform 6000ms linear 0s
}
100% {
-moz-transform:scale(1.1);
-moz-transition:-moz-transform 7000ms linear 0s
}
}
/* Remaining CSS code continues as is */