logo
shape

Carousel

A slideshow component for cycling through elements—images or slides of text—like a carousel.

Carousel on Bootstrap
Basic Example
<div class="carousel slide" id="carouselExampleControls" data-ride="carousel">
  <ol class="carousel-indicators">
    <li class="active" data-target="#carouselExampleControls" data-slide-to="0"></li>
    <li data-target="#carouselExampleControls" data-slide-to="1"></li>
    <li data-target="#carouselExampleControls" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner rounded">
    <div class="carousel-item active"><img class="d-block w-100" src="../assets/img/generic/6.jpg" alt="First slide" /></div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/7.jpg" alt="Second slide" /></div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/8.jpg" alt="Third slide" /></div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>
With Captions
<div class="carousel slide" id="carouselExampleCaptions" data-ride="carousel">
  <ol class="carousel-indicators">
    <li class="active" data-target="#carouselExampleCaptions" data-slide-to="0"></li>
    <li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
    <li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner rounded">
    <div class="carousel-item active"><img class="d-block w-100" src="../assets/img/generic/10.jpg" alt="First slide" />
      <div class="carousel-caption d-none d-md-block">
        <h5 class="text-white">First Slide Heading</h5>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
      </div>
    </div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/11.jpg" alt="Second slide" />
      <div class="carousel-caption d-none d-md-block">
        <h5 class="text-white">First Slide Heading</h5>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
      </div>
    </div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/12.jpg" alt="Third slide" />
      <div class="carousel-caption d-none d-md-block">
        <h5 class="text-white">First Slide Heading</h5>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
      </div>
    </div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>
Fade Example
<div class="carousel slide carousel-fade" id="carouselExampleFade" data-ride="carousel">
  <div class="carousel-inner rounded">
    <div class="carousel-item active"><img class="d-block w-100" src="../assets/img/generic/8.jpg" alt="First slide" /></div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/7.jpg" alt="Second slide" /></div>
    <div class="carousel-item"><img class="d-block w-100" src="../assets/img/generic/6.jpg" alt="Third slide" /></div>
  </div>
  <a class="carousel-control-prev" href="#carouselExampleFade" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleFade" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

Get latest news
in your box!

Get Special Offers & Deals. We Never Spam.

Copyright © 2022.Company name All rights reserved.网页模板