"Fancy tabs responsive"
Bootstrap 3.2.0 Snippet by mouse0270

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@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; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

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

Greg Robertson () - 8 years ago - Reply -1


It doesn't work... It doesn't change the text below once I click on another picture... how can I solve?

Simone Raichini () - 8 years ago - Reply 0


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.

Karina Machado () - 8 years ago - Reply 0


I see problems in Internet Explorer

Anthony () - 9 years ago - Reply 0


Awsome work!

Rikard () - 9 years ago - Reply 0


Nice menu. Is it possible to keep the tabs inline on a phone screen, and not underneath each other?

Stefanie () - 9 years ago - Reply 0


Not really because then you would have to make the images smaller or limit the number to 4.

mouse0270 () - 9 years ago - Reply 0


Fantastic, good man!

Sardafilm () - 9 years ago - Reply 0


Good one can you bootlint it as its creating a problem

Fahim Akhtar () - 9 years ago - Reply 0


Which css do I put the code in?

James () - 9 years ago - Reply 0


Very nice man !

Orizhial () - 9 years ago - Reply 0


Is it possible that text, would appear without clicking, just along with image pop up?

dikov () - 10 years ago - Reply 0


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.

mouse0270 () - 9 years ago - Reply 0


how to connect online chat could you please tell me

shiva () - 9 years ago - Reply 0


What do you mean, how to connect with me via online chat or how to connect this to an online chat?

mouse0270 () - 9 years ago - Reply 0


Thanks friend! :D

Maria del Carmen () - 10 years ago - Reply 0