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
"carousel css"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
carousel
Preview
HTML
CSS
View Full Screen
Fork
Fork this
3.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="col-lg-12"> <div id="carousel-custom" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="http://placehold.it/1400x600&text=slide1" alt="..." class="img-responsive"> </div> <div class="item"> <img src="http://placehold.it/1400x600&text=slide2" alt="..." class="img-responsive"> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-custom" role="button" data-slide="prev"> <i class="fa fa-chevron-left"></i> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-custom" role="button" data-slide="next"> <i class="fa fa-chevron-right"></i> <span class="sr-only">Next</span> </a> <!-- Indicators --> <ol class="carousel-indicators visible-sm-block hidden-xs-block visible-md-block visible-lg-block"> <li data-target="#carousel-custom" data-slide-to="0" class="active"> <img src="http://placehold.it/100x50&text=slide1" alt="..." class="img-responsive"> </li> <li data-target="#carousel-custom" data-slide-to="1"> <img src="http://placehold.it/100x50&text=slide2" alt="..." class="img-responsive"> </li> </ol> </div> </div> </div> </div>
#carousel-custom { margin-top: 10px; width: 100%; } #carousel-custom .carousel-indicators { margin: 10px 0 0; overflow: auto; position: static; text-align: left; white-space: nowrap; width: 100%; } #carousel-custom .carousel-indicators li { background-color: transparent; -webkit-border-radius: 0; border-radius: 0; display: inline-block; height: auto; margin: 0 !important; width: auto; } #carousel-custom .carousel-indicators li img { display: block; opacity: 0.5; } #carousel-custom .carousel-indicators li.active img { opacity: 1; } #carousel-custom .carousel-indicators li:hover img { opacity: 0.75; } #carousel-custom .carousel-outer { position: relative; } .carousel-control.left { background-image: none; width: 54px; height: 54px; top: 50%; left: 20px; margin-top: -27px; line-height: 54px; border: 2px solid #fff; opacity: 1; text-shadow: none; -webkit-transition: all 0.2s ease-in-out 0s; -o-transition: all 0.2s ease-in-out 0s; transition: all 0.2s ease-in-out 0s; } .carousel-control.right { background-image: none; width: 54px; height: 54px; top: 50%; right: 20px; margin-top: -27px; line-height: 54px; border: 2px solid #fff; opacity: 1; text-shadow: none; -webkit-transition: all 0.2s ease-in-out 0s; -o-transition: all 0.2s ease-in-out 0s; transition: all 0.2s ease-in-out 0s; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76