"Tabbed Slider Toggle"
Bootstrap 3.3.0 Snippet by ASDAFF

<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 ----------> <div class="container-fluid"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="http://placehold.it/1800x400/cccccc/ffffff"> <div class="carousel-caption"> <h1>Headline</h1> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.<hr /><a href="http://sevenx.de/demo/bootstrap-carousel/" target="_blank" class="btn btn-info">CTA 1</a></p> </div> </div><!-- End Item --> <div class="item"> <img src="http://placehold.it/1800x400/999999/cccccc"> <div class="carousel-caption"> <h2>Headline</h2> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.<hr /><a href="http://sevenx.de/demo/bootstrap-carousel/" target="_blank" class="btn btn-warning">CTA 2</a></p> </div> </div><!-- End Item --> <div class="item"> <img src="http://placehold.it/1800x400/dddddd/333333"> <div class="carousel-caption"> <h3>Headline</h3> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.<hr /><a href="http://sevenx.de/demo/bootstrap-carousel/" target="_blank" class="btn btn-success">CTA 3</a></p> </div> </div><!-- End Item --> <!--<div class="item"> <img src="http://placehold.it/1200x400/999999/cccccc"> <div class="carousel-caption"> <h3>Headline</h3> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> </div> </div>--><!-- End Item --> </div><!-- End Carousel Inner --> <ul class="nav nav-pills nav-justified custom-nav-pills"> <li data-target="#myCarousel" data-slide-to="0" class="active blue-custom-slide"><a href="#"><span class="strong">Product 1</span><small>brief description here</small></a></li> <li data-target="#myCarousel" data-slide-to="1" class="orange-custom-slide"><a href="#"><span class="strong">Product 2</span><small>brief description here</small></a></li> <li data-target="#myCarousel" data-slide-to="2" class="green-custom-slide"><a href="#"><span class="strong">Product 3</span><small>brief description here</small></a></li> <!--<li data-target="#myCarousel" data-slide-to="3"><a href="#">Services<small>Lorem ipsum dolor sit</small></a></li>--> </ul> </div><!-- End Carousel --> </div>
@import url('https://fonts.googleapis.com/css?family=Droid+Sans|Raleway'); .raleway { font-family: 'Raleway Sans', sans-serif; } .droid-sans { font-family: 'Droid-sans', sans-serif; } body { padding-top: 20px; } #myCarousel .nav a small { display:block; font-family: 'Droid-sans', sans-serif; font-size: 15px; } #myCarousel .nav { background:#eee; } #myCarousel .nav a { border-radius:0px; } .custom-nav-pills { min-height: 300px; } h1,h2,h3 { font-family: 'Raleway Sans', sans-serif; } h1 { font-size: 70px; } h2 { font-size: 57px; } h3 { font-size: 40px; } .blue-custom-slide,.orange-custom-slide,.green-custom-slide {background-color: #FFFFFF;} .blue-custom-slide { border-bottom: solid 4px #0080c6; } .orange-custom-slide { border-bottom: solid 4px #f4b841; } .green-custom-slide { border-bottom: solid 4px #91f798; } .strong { font-weight: 600; }
$(document).ready( function() { $('#myCarousel').carousel({ interval: 7000 }); var clickEvent = false; $('#myCarousel').on('click', '.nav a', function() { clickEvent = true; $('.nav li').removeClass('active'); $(this).parent().addClass('active'); }).on('slid.bs.carousel', function(e) { if(!clickEvent) { var count = $('.nav').children().length -1; var current = $('.nav li.active'); current.removeClass('active').next().addClass('active'); var id = parseInt(current.data('slide-to')); if(count == id) { $('.nav li').first().addClass('active'); } } clickEvent = false; }); });

Related: See More


Questions / Comments: