Fancy tabs responsive
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 text-center ]">
<div class="[ row ]">
<div class="[ col-xs-12 ]" style="padding-bottom: 30px;">
<p>This is my attempt to make a wonderful snippet posted by <a target="_blank" href="http://www.bootsnipp.com/maridlcrmn">maridlcrmn</a> a little more responsive. You can find the orginal <a target="_parent" href="http://bootsnipp.com/maridlcrmn/snippets/QbEpr">here</a></p>
</div>
</div>
</div>
<div class="[ container text-center ]">
<div class="[ row ]">
<div class="[ col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 ]" role="tabpanel">
<div class="[ col-xs-4 col-sm-12 ]">
<!-- Nav tabs -->
<ul class="[ nav nav-justified ]" id="nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#dustin" aria-controls="dustin" role="tab" data-toggle="tab">
<img class="img-circle" src="https://s3.amazonaws.com/uifaces/faces/twitter/dustinlamont/128.jpg" />
<span class="quote"><i class="fa fa-quote-left"></i></span>
</a>
</li>
<li role="presentation" class="">
<a href="#daksh" aria-controls="daksh" role="tab" data-toggle="tab">
<img class="img-circle" src="https://s3.amazonaws.com/uifaces/faces/twitter/dakshbhagya/128.jpg" />
<span class="quote"><i class="fa fa-quote-left"></i></span>
</a>
</li>
<li role="presentation" class="">
<a href="#anna" aria-controls="anna" role="tab" data-toggle="tab">
<img class="img-circle" src="https://s3.amazonaws.com/uifaces/faces/twitter/annapickard/128.jpg" />
<span class="quote"><i class="fa fa-quote-left"></i></span>
</a>
</li>
<li role="presentation" class="">
<a href="#wafer" aria-controls="wafer" role="tab" data-toggle="tab">
<img class="img-circle" src="https://s3.amazonaws.com/uifaces/faces/twitter/waferbaby/128.jpg" />
<span class="quote"><i class="fa fa-quote-left"></i></span>
</a>
</li>
</ul>
</div>
<div class="[ col-xs-8 col-sm-12 ]">
<!-- Tab panes -->
<div class="tab-content" id="tabs-collapse">
<div role="tabpanel" class="tab-pane fade in active" id="dustin">
<div class="tab-inner">
<p class="lead">Etiam tincidunt enim et pretium efficitur. Donec auctor leo sollicitudin eros iaculis sollicitudin.</p>
<hr>
<p><strong class="text-uppercase">Dustin Lamont</strong></p>
<p><em class="text-capitalize"> Senior web developer</em> at <a href="#">Apple</a></p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="daksh">
<div class="tab-inner">
<p class="lead">Suspendisse dictum gravida est, nec consequat tortor venenatis a. Suspendisse vitae venenatis sapien.</p>
<hr>
<p><strong class="text-uppercase">Daksh Bhagya</strong></p>
<p><em class="text-capitalize"> UX designer</em> at <a href="#">Google</a></p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="anna">
<div class="tab-inner">
<p class="lead">Nullam suscipit ante ac arcu placerat, nec sagittis quam volutpat. Vestibulum aliquam facilisis velit ut ultrices.</p>
<hr>
<p><strong class="text-uppercase">Anna Pickard</strong></p>
<p><em class="text-capitalize"> Master web developer</em> at <a href="#">Intel</a></p>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="wafer">
<div class="tab-inner">
<p class="lead"> Fusce erat libero, fermentum quis sollicitudin id, venenatis nec felis. Morbi sollicitudin gravida finibus.</p>
<hr>
<p><strong class="text-uppercase">Wafer Baby</strong></p>
<p><em class="text-capitalize"> Web designer</em> at <a href="#">Microsoft</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css);
body { padding-top: 60px; }
.nav.nav-justified > li > a { position: relative; }
.nav.nav-justified > li > a:hover,
.nav.nav-justified > li > a:focus { background-color: transparent; }
.nav.nav-justified > li > a > .quote {
position: absolute;
left: 0px;
top: 0;
opacity: 0;
width: 30px;
height: 30px;
padding: 5px;
background-color: #13c0ba;
border-radius: 15px;
color: #fff;
}
.nav.nav-justified > li.active > a > .quote { opacity: 1; }
.nav.nav-justified > li > a > img { box-shadow: 0 0 0 5px #13c0ba; }
.nav.nav-justified > li > a > img {
max-width: 100%;
opacity: .3;
-webkit-transform: scale(.8,.8);
transform: scale(.8,.8);
-webkit-transition: all 0.3s 0s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transition: all 0.3s 0s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav.nav-justified > li.active > a > img,
.nav.nav-justified > li:hover > a > img,
.nav.nav-justified > li:focus > a > img {
opacity: 1;
-webkit-transform: none;
transform: none;
-webkit-transition: all 0.3s 0s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transition: all 0.3s 0s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tab-pane .tab-inner { padding: 30px 0 20px; }
@media (min-width: 768px) {
.nav.nav-justified > li > a > .quote {
left: auto;
top: auto;
right: 20px;
bottom: 0px;
}
}
Hi, great tabs!!! 2 questions..,1. When the tab button are in inactive states, can they butt up right next to each other with out the space?,2. Is there a way I can add textural content to the tab buttons? Tried using a background image so I could add the content over top of it, but I couldn’t get it to work.,Thanks, Greg,It doesn’t work… It doesn’t change the text below once I click on another picture… how can I solve?,is amazing I test at my site, but I done with 8 pictures and when I see at the firefox, the picture will be smaller.,I see problems in Internet Explorer,Awsome work!,Nice menu. Is it possible to keep the tabs inline on a phone screen, and not underneath each other?,Not really because then you would have to make the images smaller or limit the number to 4.,Fantastic, good man!,Good one can you bootlint it as its creating a problem,Which css do I put the code in?,Very nice man !,Is it possible that text, would appear without clicking, just along with image pop up?,you would need to create a new class called active and then write some JavaScript that will remove the class active from the first one and select the next one.,how to connect online chat could you please tell me,What do you mean, how to connect with me via online chat or how to connect this to an online chat?,Thanks friend! 😀 ,The author is mouse0270

Loading...