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
"Round-tab-control"
Bootstrap 3.3.0 Snippet by
MrOC
3.3.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
5.0K
 
3 Fav
Post to Facebook
Tweet this
<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"> <section> <div class="fg-round-tab"> <div class="fg-round-tab-inner"> <div class="connecting-line"></div> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Løp 1"> <span class="round-tab dirt"> <div>1</div> <!--<i class="glyphicon glyphicon-folder-open"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Løp 2"> <span class="round-tab grass"> <div>2</div> <!--<i class="glyphicon glyphicon-pencil"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Løp 3"> <span class="round-tab dirt"> <div>3</div> <!--<i class="glyphicon glyphicon-picture"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step4" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 4"> <span class="round-tab"> <div>4</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step5" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 5"> <span class="round-tab"> <div>5</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step6" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 6"> <span class="round-tab"> <div>6</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step7" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 7"> <span class="round-tab"> <div>7</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step8" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 8"> <span class="round-tab"> <div>8</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step9" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 9"> <span class="round-tab"> <div>9</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step10" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 10"> <span class="round-tab"> <div>10</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step11" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 11"> <span class="round-tab"> <div>11</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step12" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 12"> <span class="round-tab"> <div>12</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step13" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 13"> <span class="round-tab"> <div>13</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step14" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 14"> <span class="round-tab"> <div class="grass">14</div> <!--<i class="glyphicon glyphicon-ok"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step15" data-toggle="tab" aria-controls="complete" role="tab" title="Løp 15"> <span class="round-tab"> <div class="dirt">15</div> <!--<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> </div> <div class="tab-pane" role="tabpanel" id="step2"> <h3>Step 2</h3> <p>This is step 2</p> </div> <div class="tab-pane" role="tabpanel" id="step3"> <h3>Step 3</h3> <p>This is step 3</p> </div> <div class="tab-pane" role="tabpanel" id="step4"> <h3>Step 4</h3> <p>This is step 4</p> </div> <div class="tab-pane" role="tabpanel" id="step5"> <h3>Step 5</h3> <p>This is step 5</p> </div> <div class="tab-pane" role="tabpanel" id="step6"> <h3>Step 6</h3> <p>This is step 6</p> </div> <div class="tab-pane" role="tabpanel" id="step7"> <h3>Step 7</h3> <p>This is step 7</p> </div> <div class="tab-pane" role="tabpanel" id="step8"> <h3>Step 8</h3> <p>This is step 8</p> </div> <div class="tab-pane" role="tabpanel" id="step9"> <h3>Step 9</h3> <p>This is step 9</p> </div> <div class="tab-pane" role="tabpanel" id="step10"> <h3>Step 10</h3> <p>This is step 10</p> </div> <div class="tab-pane" role="tabpanel" id="step11"> <h3>Step 11</h3> <p>This is step 11</p> </div> <div class="tab-pane" role="tabpanel" id="step12"> <h3>Step 12</h3> <p>This is step 12</p> </div> <div class="tab-pane" role="tabpanel" id="step13"> <h3>Step 13</h3> <p>This is step 13</p> </div> <div class="tab-pane" role="tabpanel" id="step14"> <h3>Step 14</h3> <p>This is step 14</p> </div> <div class="tab-pane" role="tabpanel" id="step15"> <h3>Step 15</h3> <p>This is step 15</p> </div> <div class="clearfix"></div> </div> </form> </div> </section> </div> </div>
.fg-round-tab { margin: 20px auto; background: #fff; } .fg-round-tab .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: #e0e0e0; } .fg-round-tab > div.fg-round-tab-inner { position: relative; } .connecting-line { height: 1px; background: #e0e0e0; position: absolute; width: 85%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; } span.round-tab { width: 50px; height: 50px; line-height: 48px; display: inline-block; border-radius: 100px; color: #555555; background: #fff; border: 3px solid #e0e0e0; z-index: 2; position: absolute; left: 1; text-align: center; font-size: 32px; } span.round-tab.grass { background-image: url('http://lorempixel.com/150/150/nature/1'); } span.round-tab.dirt { background-image: url('http://lorempixel.com/150/150/nature/2'); } .fg-round-tab li.active span.round-tab { background: #fff; border: 3px solid #5bc0de; transition: 0.15s ease-in-out; } .fg-round-tab li.active span.round-tab.grass { background-image: url('http://lorempixel.com/150/150/nature/1'); } .fg-round-tab li.active span.round-tab.dirt { background-image: url('http://lorempixel.com/150/150/nature/2'); } span.round-tab:hover { color: #333; border: 3px solid #555555; } .fg-round-tab .nav-tabs > li { width: 20%; } .fg-round-tab li:after { content: " "; position: absolute; left: 39%; opacity: 0; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; transition: 0.1s ease-in-out; } .fg-round-tab li.active:after { content: " "; position: absolute; left: 39%; opacity: 1; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; } .fg-round-tab .nav-tabs > li a { width: 50px; height: 50px; margin: 20px auto; border-radius: 100%; padding: 0; } .fg-round-tab .nav-tabs > li a:hover { background: transparent; } .fg-round-tab .tab-pane { position: relative; padding-top: 50px; } .fg-round-tab h3 { margin-top: 0; } @media( max-width : 585px ) { .fg-round-tab { width: 90%; height: auto !important; } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } .fg-round-tab .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } .fg-round-tab li.active:after { content: " "; position: absolute; left: 35%; } }
$(document).ready(function () { //Initialize tooltips $('.nav-tabs > li a[title]').tooltip(); var numberOfRoundTabs = $('.round-tab').length if (numberOfRoundTabs > 0) { var x = 100 / numberOfRoundTabs; $(".fg-round-tab .nav-tabs > li").css({"width": x+'%'}); if (numberOfRoundTabs < 9) $(".connecting-line").css({"width": '85%'}); else $(".connecting-line").css({"width": '90%'}); if (numberOfRoundTabs === 5){ $(".fg-round-tab li:after").css({"left": '46%'}); $(".fg-round-tab li.active:after").css({"left": '46%'}); } else if (numberOfRoundTabs === 6){ $(".fg-round-tab li:after").css({"left": '45%'}); $(".fg-round-tab li.active:after").css({"left": '45%'}); } else if (numberOfRoundTabs === 15){ $(".fg-round-tab li:after").css({"left": '39%'}); $(".fg-round-tab li.active:after").css({"left": '39%'}); } } });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76