<div class="tabs">
<input type="radio" name="tab" id="html">
<label for="html"><a href="./HTML.html"><i class="fa fab fa-html5"></i></a></label>
<input type="radio" name="tab" id="css">
<label for="css"><a href="./CSS3.html"><i class="fa fab fa-css3"></i></a></label>
<input type="radio" name="tab" id="home" checked="checked">
<label for="home"><a href="../index.html"><i class="fas fa-home fa-bounce"></i></a></label>
<input type="radio" name="tab" id="javascript">
<label for="javascript"><a href="#javascript"><i class="fa fab fa-js"></i></a></label>
<input type="radio" name="tab" id="php">
<label for="php"><a href="#php"><i class="fa fab fa-php"></i></a></label>
<div class="bubble"></div>
<div class="liquid">
<div class="liquid-tab">
<span class="active"></span>
</div>
</div>
</div>
body{
display: block;
position: relative;
--bs-body-bg: #121230;
background:var(--bs-body-bg);
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
/* start nav-bar-2 */
.tabs {
margin: 20px auto;
width: 550px;
height: 75px;
bottom: 0px;
left: 50%;
transform: translate(-50%, 10px);
display: flex;
justify-content: center;
align-items: flex-end;
position: fixed;
}
input {
display: none;
}
label a{
display: flex;
justify-content: center;
align-items: center;
}
label {
cursor: pointer;
z-index: 2;
width: 20%;
top: 0%;
height: 75px;
display: flex;
position: relative;
justify-content: center;
}
label a i {
color: #ffd300;
position: absolute;
font-size: 30px;
z-index: 4;
transition: 0.25s 0.12s cubic-bezier(0.18, -0.1, 0.8, 1.6);
}
.liquid {
position: absolute;
filter: contrast(25);
width: 100%;
background: #fff;
border-radius: 35px;
overflow: hidden;
border-style: inset;
}
.liquid-tab {
width: 100%;
height: 70px;
background: #000000;
display: flex;
justify-content: center;
filter: blur(15px);
}
.active {
position: absolute;
left: 25px;
width: 65px;
height: 35px;
background: #fff;
transition: 0.25s cubic-bezier(0.18, -0.1, 0.8, 1.6);
}
.bubble {
position: absolute;
width: 60px;
height: 55px;
background: #000000;
top: -30px;
left: 25px;
margin: auto;
z-index: 1;
border-radius: 30%;
transition: 0.25s cubic-bezier(0.18, -0.1, 0.8, 1.6);
}
#home:checked ~ .bubble,
#home:checked ~ div div .active{
left: 44.5%;
}
#html:checked ~ .bubble,
#html:checked ~ div div .active{
left: 4.5%;
}
#css:checked ~ .bubble,
#css:checked ~ div div .active{
left: 24.5%;
}
#javascript:checked ~ .bubble,
#javascript:checked ~ div div .active{
left: 64.5%;
}
#php:checked ~ .bubble,
#php:checked ~ div div .active{
left: 84.5%;
}
input:checked + label {
top: -40px;
}
@media only screen and (max-width:575px){
.tabs{
width: 90%;
}
.bubble{
width: 60px;
}
label a{
margin-left: 15px;
}
}