"Carousel Inside Modal"
Bootstrap 3.3.0 Snippet by thehtml5ninja

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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 ---------->
<link rel="stylesheet" href="http://www.wyrvbrokers.com/css/font-awesome.min.css">
<div class="container text-center">
<h1> Button With Image Carousel Model Pop Up </h1>
<!-- Large modal -->
<button class="btn btn-default" data-toggle="modal" data-target=".imgSlider">View Slides</button>
<div class="modal fade imgSlider" tabindex="-1" role="dialog" aria-labelledby="2001-Jayco-Eagle" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img class="img-responsive" src="http://unsplash.it/g/1200/600/?image=0" alt="Unsplash-0">
<div class="carousel-caption">Unsplash Image 0</div>
</div>
<div class="item">
<img class="img-responsive" src="http://unsplash.it/g/1200/600/?image=1" alt="Unsplash-1">
<div class="carousel-caption">Unsplash Image 1</div>
</div>
<div class="item">
<img class="img-responsive" src="http://unsplash.it/g/1200/600/?image=2" alt="Unsplash-2">
<div class="carousel-caption">Unsplash Image 2</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
body {
padding-top: 20px;
}
.btn-default {
top: 25%;
left:25%;
color: #999;
background: #fffccc;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: