content logo

Bootstrap Tabs:

Purple Tabs in Bootstrap

Beauty is one of the most important elements in attracting audiences and visitors to your website. Purple Tabs in Bootstrap are a great idea for the design of a website that allows increasing the visitors of any website. These Bootstrap Colorful Tabs are so creative and as you see, they have different sections that are in purple or pink color. As the HTML Tabs Effect is clear, at first, the color of its background is white and after putting the mouse on it, its color will change to purple. This changing color is so smoothly and the pink color appears in a nice way.

As we said, the Tabs with Hover Animation is so eye-catching and this animation comes from the right of the page. The only work you have to do is clicking on each part you want. After that you selected the specific section and click on it, all detail of that part will appear. By using these CSS Purple Tabs, you can place a large number of words in a small space. Plus, this helps your visitors not to be confused by accessing to the considered part. So, you can use this code to do all mentioned elements on your website and make it more beautiful.

#

CSS Purple Tabs

#

Bootstrap Colorful Tabs

#

HTML Tabs Effect

#

Tabs with Hover Animation

<!-- This script got from frontendfreecode.com -->
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <div class="tab" role="tabpanel">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#Section1" aria-controls="home" role="tab" data-toggle="tab">Section 1</a></li>
                    <li role="presentation"><a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab">Section 2</a></li>
                    <li role="presentation"><a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab">Section 3</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content tabs">
                    <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
    margin: 20px;
}
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Barlow", sans-serif;
}
.tab .nav-tabs {
    background: linear-gradient(#e9e9e9, #fff);
    padding: 10px;
    margin: 0 0 10px;
    border: none;
    border-radius: 20px 20px 0 0;
}
.tab .nav-tabs li a {
    color: #555;
    background: #fff;
    font-size: 19px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 20px 8px;
    margin: 0 5px 0 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.3s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #fff;
    background: #fff;
    border: none;
}
.tab .nav-tabs li a:before {
    content: "";
    background-color: #ea237e;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
    transform: perspective(350px) rotateY(-70deg) scale(0.5);
    position: absolute;
    top: 0;
    left: 50px;
    z-index: -1;
    transition: left 0.3s ease 0s, opacity 0.3s ease 0s, transform 0.3s ease 0.2s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    opacity: 1;
    transform: perspective(350px) rotateY(0) scale(1);
    left: 0;
}
.tab .tab-content {
    color: #555;
    background: linear-gradient(#fff, #e9e9e9);
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }
    .tab .nav-tabs li:last-child {
        margin-bottom: 0;
    }
    .tab .nav-tabs li a {
        margin: 0;
    }
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
body {
    margin: 20px;
}
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Barlow", sans-serif;
}
.tab .nav-tabs {
    background: linear-gradient(#e9e9e9, #fff);
    padding: 10px;
    margin: 0 0 10px;
    border: none;
    border-radius: 20px 20px 0 0;
}
.tab .nav-tabs li a {
    color: #555;
    background: #fff;
    font-size: 19px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 20px 8px;
    margin: 0 5px 0 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.3s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #fff;
    background: #fff;
    border: none;
}
.tab .nav-tabs li a:before {
    content: "";
    background-color: #ea237e;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
    transform: perspective(350px) rotateY(-70deg) scale(0.5);
    position: absolute;
    top: 0;
    left: 50px;
    z-index: -1;
    transition: left 0.3s ease 0s, opacity 0.3s ease 0s, transform 0.3s ease 0.2s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    opacity: 1;
    transform: perspective(350px) rotateY(0) scale(1);
    left: 0;
}
.tab .tab-content {
    color: #555;
    background: linear-gradient(#fff, #e9e9e9);
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }
    .tab .nav-tabs li:last-child {
        margin-bottom: 0;
    }
    .tab .nav-tabs li a {
        margin: 0;
    }
}
</style>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <div class="tab" role="tabpanel">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#Section1" aria-controls="home" role="tab" data-toggle="tab">Section 1</a></li>
                    <li role="presentation"><a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab">Section 2</a></li>
                    <li role="presentation"><a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab">Section 3</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content tabs">
                    <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, non iaculis mi varius.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview