Skip to content

Instantly share code, notes, and snippets.

@zzpaul
Created August 11, 2013 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zzpaul/6203291 to your computer and use it in GitHub Desktop.
Save zzpaul/6203291 to your computer and use it in GitHub Desktop.
Bootstrap carousel
<div id="carousel-example-generic" class="carousel slide">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img data-src="holder.js/1500x400/auto/#666:#444/text:First Image" alt="">
</div>
<div class="item">
<img data-src="holder.js/1500x400/auto/#666:#444/text:Second Image" alt="">
</div>
<div class="item">
<img data-src="holder.js/1500x400/auto/#555:#333/text:Third Image" alt="">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="icon-next"></span>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment