"Timeline"
Bootstrap 3.3.0 Snippet by irinashuvalova

<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"> <div class="row"> <div class="timeline"> <span class="period">06'2010</span> <span class="period">07'2011</span> <span class="period">05'2012</span> <span class="period period-active">08'2013</span> <span class="period">12'2013</span> <span class="period">06'2014</span> </div> </div> </div>
.timeline { margin-top: 40px; background-color: #425c7f; width: 600px; height: 18px; border-radius: 10px; color: #fff; font-size: 0; } .period { border-radius: 10px; width: 16.66%; margin-top: 0; box-sizing: border-box; display: inline-block; height: 18px; font-size: 14px; text-align: center; cursor: pointer; } .period-active { background-color: #afb4ba; }
$(function() { $('.timeline').on('click', '.period', function() { $('.period').removeClass('period-active'); $(this).addClass('period-active'); }) })

Related: See More


Questions / Comments: