"Bootstrap modal with carousel"
Bootstrap 3.3.0 Snippet by sijose

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <ul class="nav nav-pills nav-stacked"> <li><a href="#lightbox" data-toggle="modal">Open Lightbox</a></li> <li><a href="#lightbox" data-toggle="modal" data-slide-to="1">2nd Image</a></li> <li><a href="#lightbox" data-toggle="modal" data-slide-to="2">3rd Image</a></li> <li><a href="#lightbox" data-toggle="modal" data-slide-to="15">Open non existing Image</a></li> </ul> <div class="modal fade and carousel slide" id="lightbox"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"> <ol class="carousel-indicators"> <li data-target="#lightbox" data-slide-to="0" class="active"></li> <li data-target="#lightbox" data-slide-to="1"></li> <li data-target="#lightbox" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="http://placehold.it/900x500/777/" alt="First slide"> </div> <div class="item"> <img src="http://placehold.it/900x500/666/" alt="Second slide"> </div> <div class="item"> <img src="http://placehold.it/900x500/555/" alt="Third slide"> <div class="carousel-caption"><p>even with captions...</p></div> </div> </div><!-- /.carousel-inner --> <a class="left carousel-control" href="#lightbox" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#lightbox" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div><!-- /.modal-body --> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> </div><!-- /.container -->
.modal.and.carousel { position: absolute; /* Needed because the carousel overrides the position property */ }

Related: See More


Questions / Comments: