Css tabs
How do I make an css tabs?
What is a css tabs? How do you make a css tabs? This script and codes were developed by Massimo on 17 September 2022, Saturday.
Css tabs - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>css tabs</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container"> <input type="radio" name="tabs" id="tab_3"/> <label for="tab_3"> <div class="content">Hello, I'm #</div> </label> <input type="radio" name="tabs" id="tab_2"/> <label for="tab_2"> <div class="content">Hello, I'm #</div> </label> <input type="radio" name="tabs" id="tab_1"/> <label for="tab_1"> <div class="content">Hello, I'm #</div> </label> <input type="radio" name="tabs" id="tab_0"/> <label for="tab_0"> <div class="content">Hello, I'm #</div> </label>
</div>
</body>
</html>
Css tabs - Script Codes CSS Codes
body { overflow: hidden; background: #000;
}
body .container { position: absolute; top: 50%; left: 50%; width: 500px; height: 300px; margin: -150px -250px; counter-reset: tab-counter 5;
}
body .container input[type=radio] { display: none;
}
body .container input[type=radio]:checked + label ~ label:nth-child(2) { width: 78px;
}
body .container input[type=radio]:checked + label ~ label:nth-child(2) .content { -webit-transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); opacity: 0; pointer-events: none;
}
body .container input[type=radio] + label { position: absolute; height: 100%; box-shadow: 2px 0px 4px -2px #000; cursor: pointer; -webit-transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1); transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1);
}
body .container input[type=radio] + label:nth-child(2) { box-shadow: none;
}
body .container input[type=radio] + label:nth-child(2) { width: 500px; background: #9575CD;
}
body .container input[type=radio] + label .content { position: absolute; left: 50%; top: 50%; width: 250px; margin-left: -125px; counter-increment: tab-counter -1; text-align: center;
}
body .container input[type=radio] + label .content:after { content: counter(tab-counter);
}
body .container input[type=radio]:checked + label ~ label:nth-child(4) { width: 54px;
}
body .container input[type=radio]:checked + label ~ label:nth-child(4) .content { -webit-transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); opacity: 0; pointer-events: none;
}
body .container input[type=radio] + label { position: absolute; height: 100%; box-shadow: 2px 0px 4px -2px #000; cursor: pointer; -webit-transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1); transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1);
}
body .container input[type=radio] + label:nth-child(2) { box-shadow: none;
}
body .container input[type=radio] + label:nth-child(4) { width: 476px; background: #64B5F6;
}
body .container input[type=radio] + label:nth-child(4):after { position: absolute; content: ''; top: 50%; left: 100%; width: 18px; height: 75px; border-radius: 0 7.5px 7.5px 0; background: #64B5F6; box-shadow: 3px 0px 6px -3px #000;
}
body .container input[type=radio] + label .content { position: absolute; left: 50%; top: 50%; width: 250px; margin-left: -125px; counter-increment: tab-counter -1; text-align: center;
}
body .container input[type=radio] + label .content:after { content: counter(tab-counter);
}
body .container input[type=radio]:checked + label ~ label:nth-child(6) { width: 30px;
}
body .container input[type=radio]:checked + label ~ label:nth-child(6) .content { -webit-transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); opacity: 0; pointer-events: none;
}
body .container input[type=radio] + label { position: absolute; height: 100%; box-shadow: 2px 0px 4px -2px #000; cursor: pointer; -webit-transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1); transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1);
}
body .container input[type=radio] + label:nth-child(2) { box-shadow: none;
}
body .container input[type=radio] + label:nth-child(6) { width: 452px; background: #81C784;
}
body .container input[type=radio] + label:nth-child(6):after { position: absolute; content: ''; top: 25%; left: 100%; width: 18px; height: 75px; border-radius: 0 7.5px 7.5px 0; background: #81C784; box-shadow: 3px 0px 6px -3px #000;
}
body .container input[type=radio] + label .content { position: absolute; left: 50%; top: 50%; width: 250px; margin-left: -125px; counter-increment: tab-counter -1; text-align: center;
}
body .container input[type=radio] + label .content:after { content: counter(tab-counter);
}
body .container input[type=radio]:checked + label ~ label:nth-child(8) { width: 6px;
}
body .container input[type=radio]:checked + label ~ label:nth-child(8) .content { -webit-transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); transition: opacity 0.4s cubic-bezier(0.11, 0.65, 0.04, 1); opacity: 0; pointer-events: none;
}
body .container input[type=radio] + label { position: absolute; height: 100%; box-shadow: 2px 0px 4px -2px #000; cursor: pointer; -webit-transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1); transition: width 1.2s cubic-bezier(0.11, 0.65, 0.04, 1);
}
body .container input[type=radio] + label:nth-child(2) { box-shadow: none;
}
body .container input[type=radio] + label:nth-child(8) { width: 428px; background: #E57373;
}
body .container input[type=radio] + label:nth-child(8):after { position: absolute; content: ''; top: 0%; left: 100%; width: 18px; height: 75px; border-radius: 0 7.5px 7.5px 0; background: #E57373; box-shadow: 3px 0px 6px -3px #000;
}
body .container input[type=radio] + label .content { position: absolute; left: 50%; top: 50%; width: 250px; margin-left: -125px; counter-increment: tab-counter -1; text-align: center;
}
body .container input[type=radio] + label .content:after { content: counter(tab-counter);
}
Developer | Massimo |
Username | _massimo |
Uploaded | September 17, 2022 |
Rating | 4.5 |
Size | 3,169 Kb |
Views | 38,456 |
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 |
Bernard the polar bear | 4,070 Kb |
Whale pixel art animation | 3,215 Kb |
Pathfinder | 5,360 Kb |
Underwater particles | 3,401 Kb |
ASCII art | 2,756 Kb |
Spinner | 3,826 Kb |
Cat loader | 3,899 Kb |
Run T-REX run in CSS | 8,203 Kb |
Fake 3D | 3,086 Kb |
Batman | 6,875 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 Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Em Test | Rodesco | 1,784 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Parallax scrolling scene | Iharosi | 2,485 Kb |
Mario | Takaneichinose | 3,902 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Fireworks Show | Arianalynn | 3,048 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 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!