Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Pragyan's Slider"
Bootstrap 3.0.0 Snippet by
Asit
3.0.0
jQuery
slider
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
2.6K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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"> <div class="row"> <div class="span12"> <div class="well"> <div id="myCarousel" class="carousel fdi-Carousel slide"> <!-- Carousel items --> <div class="carousel fdi-Carousel slide" id="eventCarousel" data-interval="0"> <div class="carousel-inner onebyone-carosel"> <div class="item active"> <div class="col-md-4"> <a href="#"><img src="http://2.bp.blogspot.com/-GHHzuGA3hG8/VBki2GEKXEI/AAAAAAAACg8/7mjSNXrwycY/s1600/jlogo.png" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">1</div> </div> </div> <div class="item"> <div class="col-md-4"> <a href="#"><img src="http://placehold.it/250x250" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">2</div> </div> </div> <div class="item"> <div class="col-md-4"> <a href="#"><img src="http://placehold.it/250x250" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">3</div> </div> </div> <div class="item"> <div class="col-md-4"> <a href=""><img src="http://placehold.it/250x250" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">4</div> </div> </div> <div class="item"> <div class="col-md-4"> <a href="#"><img src="http://placehold.it/250x250" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">5</div> </div> </div> <div class="item"> <div class="col-md-4"> <a href="#"><img src="http://placehold.it/250x250" data-toggle="modal" data-target="#myModal" class="img-responsive center-block"></a> <div class="text-center">6</div> </div> </div> </div> <a class="left carousel-control" href="#eventCarousel" data-slide="prev"></a> <a class="right carousel-control" href="#eventCarousel" data-slide="next"></a> </div> <!--/carousel-inner--> </div><!--/myCarousel--> </div><!--/well--> </div> </div> </div> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-body"> <button type="button" class="close" data-dismiss="modal">×</button> <img id="myImage" src="" alt="image here" /> </div> </div> </div> </div>
.carousel-inner.onebyone-carosel { margin: auto; width: 90%; } .onebyone-carosel .active.left { left: -33.33%; } .onebyone-carosel .active.right { left: 33.33%; } .onebyone-carosel .next { left: 33.33%; } .onebyone-carosel .prev { left: -33.33%; }
$(document).ready(function () { $('#myCarousel').carousel({ interval: 10000 }) $('.fdi-Carousel .item').each(function () { var next = $(this).next(); if (!next.length) { next = $(this).siblings(':first'); } next.children(':first-child').clone().appendTo($(this)); if (next.next().length > 0) { next.next().children(':first-child').clone().appendTo($(this)); } else { $(this).siblings(':first').children(':first-child').clone().appendTo($(this)); } }); $('img').click( function(){ var getSrc = $(this).attr('src'); $("#myImage").attr('src', getSrc); } ) });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
Perhaps, it has a problem at Responsive .....
nhacck4
()
-
7 years ago
-
Reply
0
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76