How To Make A Beautiful Navigation Bar Only Css No Javascript

Video Is Also There After The Html Code Below

Css Codes
body{
 margin: 0;
 padding: 0;
 background-color: #ff4c4c;
 font-family: sans-serif;
}
*{
 box-sizing: border-box;
}
input[type="checkbox"]{
 width: 0;
 height: 0;
 visibility: hidden;
}
label{
 width: 270px;
 height: 60px;
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%,-50%);
 background: #00bce4;
 box-shadow: 2px 5px 5px 3px rgba(0,0,0,.3);
 border-radius: 10px;
}
label div#nav{
 position: absolute;
 left: -130%;
 top: 130%;
 width:270px; 
 background: #fff;
 box-shadow: 2px 5px 5px 3px rgba(0,0,0,.4);
 opacity: 0;
 transition: 1s left;
}
a{
 color: #ff4c4c;
 text-decoration: none;
 font-weight: 700;
}
label div#nav ul{
 margin: 0;
 padding: 0;
 
}
.fas,span{
 font-size: 25px;
 line-height: 60px;
 margin-left: 10px;
 color: #fff;
 font-weight: 700;
 letter-spacing: 2px;
}
.fas{
 margin: 0 8px 0 75px;
 border: 2px solid #fff;
 padding: 5px;
 border-radius: 5px;
 cursor: pointer;
}
label div#nav ul li{
 text-align: center;
 width: 270px;
 list-style-type: none;
 padding: 15px;
 border-bottom: 1px solid #ff4c4c;
}
div#nav ul li:hover{
 background: #00112c;
}
input:checked + div#nav{
 left: 0;
 opacity: 1;
 transition: 1s opacity,
             .3s left;
}
Html Codes

Comments