"Animated Tap panel, 3D Animated Tab panel, Animated tab panel in Jquery "
Bootstrap 4.1.1 Snippet by RAJKUMAR123

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <section class="page"> <section> <ul class="tabs-controls"> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link tabs-controls-active" data-id="1">Home</a></li> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link" data-id="2">About</a></li> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link" data-id="3">Gallery</a></li> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link" data-id="4">Team</a></li> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link" data-id="5">Testimonial</a></li> <li class="tabs-controls-itme"><a href="#" class="tabs-controls-link" data-id="6">Faq</a></li> </ul> </section> <section class="cards-container"> <div class="card card-current" id="1"> <h1>Home</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> <div class="card" id="2"> <h1>ABOUT</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> <div class="card" id="3"> <h1>Gallery</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> <div class="card" id="4"> <h1>TEAM</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> <div class="card" id="5"> <h1>TESTIMONIAL</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> <div class="card" id="6"> <h1>FAQ</h1> <p> The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table.The table containing the foreign key is called the child table, and the table containing the candidate key is called the referenced or parent table. </p> <div class="social"> <i class="fa fa-facebook"></i> <i class="fa fa-twitter"></i> <i class="fa fa-linkedin"></i> <i class="fa fa-youtube"></i> </div> </div> </section> </section>
body{ background: #015292; margin: 0; padding: 0; font-family: arial; } h1{ margin: 0; font-size: 22px; line-height: 1; color: #423e37; } .page{ width: 100vw; height: 100vh; min-height: 700px; overflow: hidden; margin-left: -25px; margin-top: 45px; } .tabs-controls{ position: relative; z-index: 10; display: flex; justify-content: center; align-items: stretch; width: 100%; margin: 0 auto; box-sizing: border-box; padding: 50px 0 100px; list-style-type: none; } .tabs-controls-link{ position: relative; display: block; padding: 16px 32px; font-size: 18px; font-weight: 700; color: #fff; text-transform: uppercase; text-decoration: none; } .tabs-controls-link:hover{ color: #fff; text-decoration:none; } .tabs-controls-link:after{ position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 0; height: 4px; background-color: #fff; border-radius: 2px; margin: auto; content: ''; transition: width 0.5s; } .tabs-controls-link:hover:after{ width: 100%; } .tabs-controls-active:after{ width: 100%; } .cards-container{ position: relative; z-index: 1; width: 500px; height: calc(100vh - 205px); margin: 0 auto; } .card{ position: absolute; width: 500px; height: 350px; background-color: #edebd7; border: 1px solid #423e37; box-shadow: 9px 11px 3px 0px rgba(0,0,0,0.2); box-sizing: border-box; padding: 40px; transition: transform 0.3s, opacity 0.2s; } .card.hidden{ z-index: 100; background-color: #fff; color: #fff; opacity: 0; transition: color 0.5s, background-color 0.5s, transform 1s, opacity 0.2s 0.4s; } .card.hidden h1{ color: #fff; transition: color 0.5s; } .card:nth-child(1){ z-index: 5; transform: translateX(0px) translateY(0px); } .card:nth-child(2){ z-index: 4; transform: translateX(10px) translateY(10px); } .card:nth-child(3){ z-index: 3; transform: translateX(20px) translateY(20px); } .card:nth-child(4){ z-index: 2; transform: translateX(30px) translateY(30px); } .card:nth-child(5){ z-index: 1; transform: translateX(40px) translateY(40px); } .card:nth-child(6){ z-index: 0; transform: translateX(50px) translateY(50px); } .social .fa{ background-color: #015292; width: 35px; height: 35px; color: #fff; text-align: center; line-height: 35px; margin-top: 20px; } .card.hidden:nth-of-type(1){ transform: rotate(-61deg) translateX(101%) translateY(-42%) scale(0.7) skewX(3deg) skewY(5deg); } .card.hidden:nth-of-type(2){ transform: rotate(-20deg) translateX(101%) translateY(-30%) scale(0.6) skewX(3deg) skewY(12deg); } .card.hidden:nth-of-type(3){ transform: rotate(-89deg) translateX(101%) translateY(-41%) scale(1) skewX(4deg) skewY(1deg); } .card.hidden:nth-of-type(4){ transform: rotate(-88deg) translateX(101%) translateY(-26%) scale(0.5) skewX(9deg) skewY(11deg); } .card.hidden:nth-of-type(5){ transform: rotate(-80deg) translateX(101%) translateY(-40%) scale(0.6) skewX(12deg) skewY(5deg); } .card.hidden:nth-of-type(5){ transform: rotate(-85deg) translateX(101%) translateY(-21%) scale(0.3) skewX(12deg) skewY(7deg); }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function() { var oldId = null; $('.tabs-controls-link').click(function(e) { e.preventDefault(); if ($(this).hasClass('tabs-controls-link-active')) { return false; } var currentId = parseInt($(this).data('id'), 10); $('.tabs-controls-link-active').removeClass('tabs-controls-link-active'); $(this).addClass('tabs-controls-link-active'); if (currentId < oldId) { // item is hidden var timing = $('.card.hidden').length * 100; $('.card').each(function(index) { if (index > (currentId - 1 ) || index == (currentId - 1)) { window.setTimeout(function() { $('.card').eq(index).removeClass('hidden'); }, timing - (index * 100)); } }); } else { $('.card').each(function(index) { if (index < (currentId - 1)) { window.setTimeout(function() { $('.card').eq(index).addClass('hidden'); }, index * 100); } }); } oldId = currentId; }); }); </script>

Related: See More


Questions / Comments: