top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Bootstrap Carousel plugin and why it is used?

0 votes
401 views
What is Bootstrap Carousel plugin and why it is used?
posted Jun 29, 2017 by Biplab Roy

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Bootstrap Carousel

The Bootstrap carousel is a flexible, responsive way to add a slider to your site. In addition to being responsive, the content is flexible enough to allow images, iframes, videos, or just about any type of content that you might want. It is a dynamic presentation of contents where text and images are made visible or accessible to the user by cycling through several items.

Example

The following example will show you how to build a simple carousel like image rotator using the Bootstrap carousel plugin.

<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Carousel indicators -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>   
    <!-- Wrapper for carousel items -->
    <div class="carousel-inner">
        <div class="item active">
            <img src="images/slide1.png" alt="First Slide">
        </div>
        <div class="item">
            <img src="images/slide2.png" alt="Second Slide">
        </div>
        <div class="item">
            <img src="images/slide3.png" alt="Third Slide">
        </div>
    </div>
    <!-- Carousel controls -->
    <a class="carousel-control left" href="#myCarousel" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
    </a>
</div>

Preview

enter image description here

answer Jul 1, 2017 by Kavyashree
...