"Product Carousel Bootstrap 3.2"
Bootstrap 3.2.0 Snippet by franco77

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="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="col-md-12 text-center">
<h3>Product Carousel Bootstrap 3.2</h3>
</div>
<div class="col-md-10 col-md-offset-1">
<div class="carousel slide" data-ride="carousel" data-type="multi" data-interval="3000" id="myCarousel">
<div class="carousel-inner">
<div class="item active">
<div class="col-md-2 col-sm-6 col-xs-12">
<a href="#"><img src="https://maxcdn.icons8.com/iOS7/PNG/75/Clothing/t_shirt-75.png" class="img-responsive"></a>
</div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12">
<a href="#"><img src="https://maxcdn.icons8.com/iOS7/PNG/75/Clothing/skirt-75.png" class="img-responsive"></a>
</div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12">
<a href="#"><img src="https://maxcdn.icons8.com/iOS7/PNG/75/Clothing/flip_flops-75.png" class="img-responsive"></a>
</div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12">
<a href="#"><img src="https://maxcdn.icons8.com/iOS7/PNG/75/Clothing/socks-75.png" class="img-responsive"></a>
</div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12">
<a href="#"><img src="https://maxcdn.icons8.com/iOS7/PNG/75/Cultures/viking_helmet-75.png" class="img-responsive"></a>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,900,700);
html {
font-size: 16px;
}
h3 {
font-family: 'Lato', sans-serif;
font-size: 2.125rem;
font-weight: 700;
color: #444;
letter-spacing: 1px;
text-transform: uppercase;
margin-top: 35px;
}
p {
font-size: 1.25rem;
width: 70%;
margin: 35px auto;
}
a {
color: #ddd;
}
a:hover {
color: #ccc;
text-decoration: none;
}
span {
color: blue;
font-weight: bold;
}
.carousel-inner {
margin: auto;
width: 90%;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$('.carousel[data-type="multi"] .item').each(function(){
var next = $(this).next();
if (!next.length) {
next = $(this).siblings(':first');
}
next.children(':first-child').clone().appendTo($(this));
for (var i=0;i<4;i++) {
next=next.next();
if (!next.length) {
next = $(this).siblings(':first');
}
next.children(':first-child').clone().appendTo($(this));
}
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: