Home > Web Front-end > Bootstrap Tutorial > How to stop automatic carousel in bootstrap carousel

How to stop automatic carousel in bootstrap carousel

(*-*)浩
Release: 2019-07-17 10:36:07
Original
5991 people have browsed it

How to stop automatic carousel in bootstrap carousel

bootstrap has a built-in web page image carousel with complete functions and a very standard carousel type.

Creating a carousel main container

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">  </div>
Copy after login

is very fast and convenient.

But when using multiple bootstrap carousel components on a page, if all the carousel images are automatically rotated, the entire screen will move, which will give the user a very bad experience. Feel.

So, you need to turn off the automatic carousel of the carousel.

Close method: remove the following attributes:

data-ride="carousel"
Copy after login

For more technical articles related to Bootstrap, please visit the Bootstrap Tutorial column. study!

The above is the detailed content of How to stop automatic carousel in bootstrap carousel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template