"Fullscreen Overlay Nav"
Bootstrap 4.0.0 Snippet by yui.napassorn

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/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 ----------> <nav class="navbar navbar-expand-lg"><a class="navbar-brand" href="#">Overlay Nav</a> <div class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><i class="fa fa-bars"></i></div> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item active"><a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a></li> <li class="nav-item"><a class="nav-link" href="#">Link</a></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"><a class="dropdown-item" href="#">Action</a><a class="dropdown-item" href="#">Another action</a> <div class="dropdown-divider"></div><a class="dropdown-item" href="#">Something else here</a> </div> </li> <li class="nav-item"><a class="nav-link" href="#">Disabled</a></li> </ul> </div> </nav>
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'); .navbar{ background:#b8b7b6 } .navbar .navbar-brand{ color: white; font-weight: bold; text-transform: uppercase; } .navbar .navbar-toggler{ z-index:2; color:#000; } @media only screen and (min-width:1200px){ .navbar .navbar-toggler{z-index:unset} } .navbar .navbar-collapse{ top:0; left:0; height:100%; width:100%; position:fixed; z-index:1; padding:5%; background:#fff; transition: 0s; } @media only screen and (min-width:1200px){ .navbar .navbar-collapse{ top:unset; left:unset; height:0; width:100%; position:unset; z-index:0; padding:unset; background:unset } } .navbar .navbar-collapse .navbar-nav{ margin:0 } .navbar .nav-link{ color: black; } @media only screen and (min-width:1200px){ .navbar .nav-link{ color: #fff; } }

Related: See More


Questions / Comments: