I added some advanced examples to customize the modal carousel with the code
<link href="bootstrap-modal-carousel.css" rel="stylesheet" />
<script src="bootstrap-modal-carousel.js"/></script/>
<button type="button" class="btn" data-toggle="modal" data-target="#myModal" data-local="#myCarousel">Demo</button>
A semi-transparent black modal with carousel controls moved into the modal footer.
<style>
.modal.modal-fullscreen .modal-content {
background: rgba(0, 0, 0, .5);
}
.modal.modal-fullscreen .modal-header {
border: 0;
color: #fff;
}
.modal.modal-fullscreen .modal-footer {
border-color: rgba(0, 0, 0, .5);
}
</style>
<div id="myCarousel" class="carousel slide carousel-fit" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img data-src="holder.js/900x500/auto/#777:#555/text:First slide" alt="First slide">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="item">
<img data-src="holder.js/750x400/auto/#666:#444/text:Second slide" alt="Second slide">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
<div class="item">
<img data-src="holder.js/600x300/auto/#555:#333/text:Third slide" alt="Third slide">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
</div>
<div class="modal fade modal-fullscreen force-fullscreen" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="btn btn-danger pull-right" type="button" data-dismiss="modal" aria-hidden="true">
<span class="glyphicon glyphicon-remove"></span>
<span>Close</span>
</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
Display the captiononly when active.
<style>
.modal.modal-fullscreen .modal-content {
background: rgba(0, 0, 0, .5);
}
.modal.modal-fullscreen .modal-header {
border: 0;
color: #fff;
}
.modal.modal-fullscreen .modal-footer {
border-color: rgba(0, 0, 0, .5);
}
#myModal .carousel-caption {
background-color: rgba(0, 0, 0, .5);
bottom: -100%;
-webkit-transition: bottom 1s;
transition: bottom 1s;
}
#myModal .item.active >.carousel-caption {
bottom: 0;
}
</style>
<div id="myCarousel" class="carousel slide carousel-fit" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img data-src="holder.js/900x500/auto/#777:#555/text:First slide" alt="First slide">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="item">
<img data-src="holder.js/750x400/auto/#666:#444/text:Second slide" alt="Second slide">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
<div class="item">
<img data-src="holder.js/600x300/auto/#555:#333/text:Third slide" alt="Third slide">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
<div class="modal fade modal-fullscreen force-fullscreen" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="btn btn-danger pull-right" type="button" data-dismiss="modal" aria-hidden="true">
<span class="glyphicon glyphicon-remove"></span>
<span>Close</span>
</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->