"wizard - 5 steps"
Bootstrap 3.3.0 Snippet by efepimenta

<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="wizard"> <div class="wizard-inner"> <div class="connecting-line"></div> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="passed"> <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Step 1"> <span class="round-tab"> <i class="glyphicon glyphicon-folder-open"></i> </span> </a> </li> <li role="presentation" class="active"> <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Step 2"> <span class="round-tab"> <i class="glyphicon glyphicon-pencil"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Step 3"> <span class="round-tab"> <i class="glyphicon glyphicon-picture"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step4" data-toggle="tab" aria-controls="step4" role="tab" title="Step 4"> <span class="round-tab"> <i class="glyphicon glyphicon-pencil"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#complete" data-toggle="tab" aria-controls="complete" role="tab" title="Complete"> <span class="round-tab"> <i class="glyphicon glyphicon-ok"></i> </span> </a> </li> </ul> </div> <form role="form"> <div class="tab-content"> <div class="tab-pane active" role="tabpanel" id="step1"> <h3>Step 1</h3> <p>This is step 1</p> <p>based on https://bootsnipp.com/snippets/Dqbb7</p> <ul class="list-inline pull-right"> <li> <button type="button" class="btn btn-primary next-step">Save and continue</button> </li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step2"> <h3>Step 2</h3> <p>This is step 2</p> <ul class="list-inline pull-right"> <li> <button type="button" class="btn btn-default prev-step">Previous</button> </li> <li> <button type="button" class="btn btn-primary next-step">Save and continue</button> </li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step3"> <h3>Step 3</h3> <p>This is step 3</p> <ul class="list-inline pull-right"> <li> <button type="button" class="btn btn-default prev-step">Previous</button> </li> <li> <button type="button" class="btn btn-default next-step">Skip</button> </li> <li> <button type="button" class="btn btn-primary btn-info-full next-step">Save and continue </button> </li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step4"> <h3>Step 4</h3> <p>This is step 4</p> <ul class="list-inline pull-right"> <li> <button type="button" class="btn btn-default prev-step">Previous</button> </li> <li> <button type="button" class="btn btn-primary next-step">Save and continue</button> </li> </ul> </div> <div class="tab-pane" role="tabpanel" id="complete"> <h3>Complete</h3> <p>You have successfully completed all steps.</p> </div> <div class="clearfix"></div> </div> </form> </div>
.wizard { margin: 20px auto; background: #ffffff; } .wizard h3 { margin-top: 0; } .wizard .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: #e0e0e0; } .wizard .nav-tabs li { width: 20%; } .wizard .nav-tabs > li a { width: 70px; height: 70px; margin: 20px auto; border-radius: 100%; padding: 0; cursor: pointer; } .wizard .nav-tabs > li a:hover { background: transparent; } .wizard > div.wizard-inner { position: relative; } .wizard .nav-tabs > li.active > a, .wizard .wizard .nav-tabs > li.active > a:hover, .wizard .wizard .nav-tabs > li.active > a:focus { color: #555555; cursor: default; border: 0; border-bottom-color: transparent; } .wizard li.disabled a { pointer-events: none; } .wizard li.passed span.round-tab { background: #ffffff; border: 2px solid #306351; } .wizard li.passed span.round-tab i { color: #306351; } .wizard li.passed:after { content: ""; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0; border: 10px solid transparent; border-bottom-color: #306351; } .wizard li.active span.round-tab { background: #ffffff; border: 2px solid #3487b6; pointer-events: none; } .wizard li.active span.round-tab i { color: #3487b6; } .wizard li.active:after { content: ""; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0; border: 10px solid transparent; border-bottom-color: #3487b6; } .wizard li:after { content: ""; position: absolute; left: 46%; opacity: 0; margin: 0 auto; bottom: 0; border: 5px solid transparent; border-bottom-color: #3487b6; transition: 0.1s ease-in-out; } .wizard .tab-pane { position: relative; padding-top: 30px; } span.round-tab { width: 70px; height: 70px; line-height: 70px; display: inline-block; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px; -moz-box-shadow: #2b5e91 1px 1px 2px; -webkit-box-shadow: #2b5e91 1px 1px 2px; box-shadow: #2b5e91 1px 1px 2px; background: #ffffff; border: 2px solid #e0e0e0; z-index: 2; position: absolute; left: 0; text-align: center; font-size: 25px; } span.round-tab i { padding: 4px; color: #555555; } span.round-tab:hover { color: #333; border: 2px solid #333; } .connecting-line { height: 2px; background: #e0e0e0; position: absolute; width: 80%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; -moz-box-shadow: #2b5e91 1px 1px 2px; -webkit-box-shadow: #2b5e91 1px 1px 2px; box-shadow: #2b5e91 1px 1px 2px; } @media (max-width: 585px) { .wizard { width: 90%; height: auto !important; } .wizard .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } .wizard li.active:after { content: ""; position: absolute; left: 35%; } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } } /* sass styles @import "compass/css3"; $active_color: #3487b6; $border_color: #e0e0e0; $icon_color: #555555; $hover_color: #333; $passed_color: #306351; $background_color: #ffffff; $shadow_color: #336eaa; $has_click: true !default; .wizard { margin: 20px auto; background: $background_color; & h3 { margin-top: 0; } & .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: $border_color; & li { width: 20%; } & > li a { width: 70px; height: 70px; margin: 20px auto; border-radius: 100%; padding: 0; cursor: pointer; @if $has_click == false { pointer-events: none; } &:hover { background: transparent; } } } & > div.wizard-inner { position: relative; } & .nav-tabs > li.active > a, .wizard .nav-tabs > li.active > a:hover, .wizard .nav-tabs > li.active > a:focus { color: $icon_color; cursor: default; border: 0; border-bottom-color: transparent; } & li.disabled a { pointer-events: none; } & li.passed span.round-tab { background: $background_color; border: 2px solid $passed_color; & i { color: $passed_color; } } & li.passed:after { content: ""; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0; border: 10px solid transparent; border-bottom-color: $passed_color; } & li.active span.round-tab { background: $background_color; border: 2px solid $active_color; pointer-events: none; & i { color: $active_color; } } & li.active:after { content: ""; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0; border: 10px solid transparent; border-bottom-color: $active_color; } & li:after { content: ""; position: absolute; left: 46%; opacity: 0; margin: 0 auto; bottom: 0; border: 5px solid transparent; border-bottom-color: $active_color; transition: 0.1s ease-in-out; } & .tab-pane { position: relative; padding-top: 30px; } } span.round-tab { width: 70px; height: 70px; line-height: 70px; display: inline-block; @include border-radius(15px); @include box-shadow(shade($shadow_color, 15) 1px 1px 2px); background: $background_color; border: 2px solid $border_color; z-index: 2; position: absolute; left: 0; text-align: center; font-size: 25px; & i { padding: 4px; color: $icon_color; } &:hover { color: $hover_color; border: 2px solid $hover_color; } } .connecting-line { height: 2px; background: $border_color; position: absolute; width: 80%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; @include box-shadow(shade($shadow_color, 15) 1px 1px 2px); } @media(max-width: 585px) { .wizard { width: 90%; height: auto !important; & .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } & li.active:after { content: ""; position: absolute; left: 35%; } } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } } */

Related: See More


Questions / Comments: