Tabbed Slider
How do I make an tabbed slider?
What is a tabbed slider? How do you make a tabbed slider? This script and codes were developed by Tywlacock on 19 December 2022, Monday.
Tabbed Slider - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tabbed Slider</title> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <ul class="tabs"> <li class="active">Tab 1</li> <li>Tab 2</li> <li>Tab 3</li> <li>Tab 4</li>
</ul>
<ul class="tab"> <li class="active"> <div class="box"> <h1>New Deals</h1><br> <h1>on</h1><br> <h1>Proto Tools</h1><br> </div> </li> <li> <img src="http://placehold.it/570x270" alt="" /> </li> <li> <img src="http://placehold.it/570x270" alt="" /> </li> <li> <img src="http://placehold.it/570x270" alt="" /> </li>
</ul> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Tabbed Slider - Script Codes CSS Codes
* { box-sizing: border-box;
}
.container { width: 574px; margin: 0 auto;
}
body { background: white !important;
}
h1, h3 { margin: 0; padding: 0;
}
ul { list-style-type: none;
}
ul.tabs { margin: 0; padding: 0;
}
ul.tabs li { transition: 0.2s ease-in-out; display: inline-block; margin: 0; background: rgba(0, 0, 0, 0.5); text-align: center; color: #fff; cursor: pointer; width: 24.3%; height: 25px; line-height: 25px;
}
ul.tabs li:hover { border-bottom: 3px solid #BD3039;
}
ul.tabs li.active { border-bottom: 3px solid #BD3039;
}
ul.tab { margin: 0; padding: 0;
}
ul.tab li { display: none; height: 270px; width: 570px;
}
ul.tab li.active { display: block;
}
h2 { border-bottom: 3px solid #34495e;
}
body { background-color: #2c3e50;
}
.box { height: 100%; background: url(http://placeimg.com/570/270/arch) no-repeat center center fixed; background-size: cover; margin: 0; padding: 10px;
}
.box h1 { background: rgba(0, 0, 0, 0.3); display: inline-block; margin: 5px 0; padding: 3px;
}
Tabbed Slider - Script Codes JS Codes
$(document).ready(function(){ $("ul.tabs li").click(function(e){ if (!$(this).hasClass("active")) { var tabNum = $(this).index(); var nthChild = tabNum+1; $("ul.tabs li.active").removeClass("active"); $(this).addClass("active"); $("ul.tab li.active").removeClass("active"); $("ul.tab li:nth-child("+nthChild+")").addClass("active"); } });
});
Developer | Tywlacock |
Username | tywlacock |
Uploaded | December 19, 2022 |
Rating | 3 |
Size | 2,920 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Triangle mixin | 1,879 Kb |
Definition List styling | 1,667 Kb |
Heartstone todo | 1,353 Kb |
Sticky header | 2,007 Kb |
Basic Reset | 5,044 Kb |
TODO - recreate | 1,331 Kb |
Material design with materialize | 1,838 Kb |
CSS-Tricks Subscribe Box | 5,708 Kb |
Simple tabs | 2,908 Kb |
Playing with Foundation 5 | 2,608 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
A Pen by Mike Otis | Mikeotis | 3,185 Kb |
CSS Colors | Alexpate | 2,232 Kb |
Day 11 - Calendar Card | Arnellebalane | 6,984 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!