Bootstrap 3.2.0 Snippet by Ehabreda97

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> <li><a href="#">Home</a></li> <li><a href="#">Features</a></li> <li><a href="#">About us</a></li> </ul> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"> <img src="img/logo.png" class="img-responsive" alt="Image"> </a> </div> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Classes</a></li> <li><a href="#">Contact us</a></li> <li><a href="#">Login</a></li> <li><a href="#">sighn up</a></li> <!-- <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li><a href="#">Separated link</a></li> </ul> </li>--> </ul> </div><!-- /.navbar-collapse --> <div class="triangle-down center"> <p> <i class="fa fa-chevron-down fa-2x isDown" id="toggle"></i> </p> </div> </div> </nav>
* { font-family: Futura, "Trebuchet MS", Arial, sans-serif; } .navbar{ margin-bottom:0} .navbar-nav{font-size: 18px; } .navbar-brand { padding-left: 260px; margin-top: -39px; } .navbar-default .navbar-collapse { padding: 20px 0 30px 0; } .navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-text:hover{color: #70CFF6;} .triangle-down { position: fixed; margin-top: 65px; width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-top: 30px solid #B168AA; } .center { margin: auto; position: absolute; left: 0; right: 0; } .triangle-down p { text-align: center; color: white; margin-top: -33px; margin-left: -13px; transition: color .2s; }
function newFunction() { $("#toggle").click(function(event) { event.preventDefault(); if ($(this).hasClass("isDown")) { $(".navbar-fixed-top").animate({ "margin-top": "-66px" }, "slow"); $("#content").animate({ "margin-top": "0px" }, "fast"); $(this).removeClass("isDown"); } else { $(".navbar-fixed-top").animate({ "margin-top": "0px" }, "fast"); $("#content").animate({ "margin-top": "66px" }, "slow"); $(this).addClass("isDown"); } return false; }); }

Related: See More

Questions / Comments: