Monday, May 27, 2024

Jquery Custom tabs Effect

Jquery Custom tabs Effect

Hello to all, welcome to In this post, I will tell you, Jquery Custom tabs Effect. I personally like jquery very much. Most of my code is full with jquery. When I stuck in php or other language then that stuckness I remove with jquery code.

I am making Jquery Custom tabs Effect because this reusable in every where no need to any thing else. just code this and use this any where.

Here are the Commenting Style In Javascript:

<script src=””></script>
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(“.nav-tabs li:first-child”).addClass(‘active’);
$(“.nav-tabs li a”).each(function(){
$(this).on(“click”, function(e){
$(“.nav-tabs li”).removeClass(“active”);
var hrefval = $(this).attr(“href”);


<style type=”text/css”>
.nav-tabs {
border-bottom: 1px solid #ddd;

.nav-tabs li:hover, .nav-tabs {
border-bottom: 3px solid #17a2b8;
a {
transition: all 0.2s ease-in-out;
.nav-tabs li {
padding: 6px 12px;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
float: left;
list-style-type: none;

.nav {
display: flex;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
.tab-content{border: 1px solid #17a2b8;
height: 200px;
padding: 10px;}
<ul class=”nav nav-tabs”>
<li class=””><a href=”#tab1″>tab1</a></li>
<li class=””><a href=”#tab2″>tab2</a></li>
<li class=””><a href=”#tab3″>tab3</a></li>
<li class=””><a href=”#tab4″>tab4</a></li>
<div class=”tab-content”>
<div class=”tab-pane” id=”tab1″>
<div class=”tab-pane” id=”tab2″>
<div class=”tab-pane” id=”tab3″>
<div class=”tab-pane” id=”tab4″>

There are so many jquery code, tricks and i will let you know all. Please do comment if you any query related to this post. Thank you.

the authortherichpost
Hello to all. Welcome to Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.