Reputation: 13
I'm making a non-interactive carousel in Bootstrap 4. By default the carousel stays on the current slide while the user is hovering. How can I disable this behavior?
Upvotes: 1
Views: 1606
Reputation:
Here is Bootstrap 4.1.x official documentation for the carousel component.
You can use the attribute data-pause="false"
when declaring your carousel, for example:
<div id="carouselExampleFade" class="carousel slide carousel-fade" data-pause="false">
Upvotes: 2