Carousels
v3.xCarousels provide a animated slideshow effect for content.
There are many free image repositories, such as: Google Images, Life of Pix, Pexels, Pixabay, Public Domain Archive, Realistic Shots, Unsplash. Librarians may wish to use their own LibGuides Image Library.
| Bootstrap 3.xCarousels
<div id="my-carousel" class="carousel slide img-thumbnail push-down-1" data-ride="carousel" data-interval="3000"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#my-carousel" data-slide-to="0" class="active"></li> <li data-target="#my-carousel" data-slide-to="1"></li> <li data-target="#my-carousel" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="http://unsplash.it/800/400" alt=""> <div class="carousel-caption"> <h3>Heading Slide #1</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> </div> </div> <div class="item"> <img src="http://unsplash.it/800/400" alt=""> <div class="carousel-caption"> <h3>Heading Slide #2</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> </div> </div> <div class="item"> <img src="http://unsplash.it/800/400" alt=""> <div class="carousel-caption"> <h3>Heading Slide #3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> </div> </div> </div> <!-- Left and right controls --> <a class="left carousel-control" href="#my-carousel" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#my-carousel" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> <span class="sr-only">Next</span> </a> </div>
Custom CSS
You may wish to set the color of the header <h3>
and paragraph <p>
of
your captions once, explicity. You may also wish to add space the circular slide indicators out a wee bit.
/* Set the color of the captions explicitly */ .carousel p, .carousel h3 { color: white !important; } /* Space the circular slide indicators out a wee bit */ .carousel-indicators li, carousel-indicators li.active { margin-left: 5px; }
Notes
×
Accessibility
The carousel component does not meet acceptable standards for accessibility. If content is mission
critical,
supplement the carousel with complementary information, or use a different component to serve your
content.
×
Keep Carousels Unique
While you may place multiple carousels a page...do not
simply cut and paste the same carousel again and again. Make sure to generate each new carousel anew,
ensuring the random number assigned to each carousel stays unique and does not conlflict with the other
carousels on the page.