I am trying to configure my Wordpress navigation menu bar to hide on scroll down and appear back on scroll up. My site url is inforce.bg Please see the part of style.css code below. Let me know if you need additional information.
.header{
margin-bottom: 0;
}
#header {
position: fixed;
top: 0;
}
#header.reveal:not(.alt) {
box-shadow: 0 5px 8px 5px rgba(0, 0, 0, 0.2);
position:fixed;
width:100%;
top:0;
}
#header.reveal:not(.alt) {
-webkit-animation: reveal-header 1s cubic-bezier(0.005, 0.975, 0.73, 1);
animation: reveal-header 1s cubic-bezier(0.005, 0.975, 0.73, 1);
border:1px solid transparent;
background:#0f0f0f;
}
.header{
position:relative;
width:100%;
z-index:9999;
background:#0f0f0f;
}
.header.header-container {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
position: absolute;
top: 0;
width: 100%;
z-index: 999;
margin: 0 auto;
}
.page-category .header-container {
background: none repeat scroll 0 0 #0f0f0f;
}
.page-category #header.reveal:not(.alt) {
-webkit-animation: reveal-header2 1s cubic-bezier(0.005, 0.975, 0.73, 1);
animation: reveal-header2 1s cubic-bezier(0.005, 0.975, 0.73, 1);
}
/*-- Logo --*/
.logo {
padding: 0 !important;
text-align:center;
}
.header-container .logo img{
margin: 30px 10px 25px 10px;
}
/*-- Navigation --*/
/* mobile menu */
.menu-wrap{
border:1px solid transparent;
background:#ec3642;
position:fixed;
width:270px;
height:100%;
transition:transform ease 1s;
-o-transition:-o-transform ease 1s;
-ms-transition:-ms-transform ease 1s;
-moz-transition:-moz-transform ease 1s;
-webkit-transition:-webkit-transform ease 1s;
transform:translateX(270px);
-o-transform:translateX(270px);
-ms-transform:translateX(270px);
-moz-transform:translateX(270px);
-webkit-transform:translateX(270px);
right:0;
top:0;
margin-right:-18px;
z-index:999999;
overflow-y:scroll;
padding:0 15px;
}
.show-menu .menu-wrap {
transition:all ease 0.6s;
-o-transition:-o-transform ease 0.6s;
-ms-transition:-ms-transform ease 0.6s;
-moz-transition:-moz-transform ease 0.6s;
-webkit-transition:-webkit-transform ease 0.6s;
transform:translateX(0);
-o-transform:translateX(0);
-ms-transform:translateX(0);
-moz-transform:translateX(0);
-webkit-transform:translateX(0);
}
.content-wrapper:before {
background:rgba(0, 0, 0, 0.5);
content: "";
height: 0;
position: absolute;
right: 0;
top: 0;
opacity:0;
transition: opacity 0.5s ease 0s;
-o-transition: opacity 0.5s ease 0s;
-ms-transition: opacity 0.5s ease 0s;
-moz-transition: opacity 0.5s ease 0s;
-webkit-transition: opacity 0.5s ease 0s;
width: 0;
z-index: 10000;
}
.show-menu .content-wrapper:before {
height: 100%;
opacity:1;
transition: opacity 0.5s ease 0s;
-o-transition: opacity 0.5s ease 0s;
-ms-transition: opacity 0.5s ease 0s;
-moz-transition: opacity 0.5s ease 0s;
-webkit-transition: opacity 0.5s ease 0s;
width: 100%;
}
.main-menu{position: relative;}
.main-menu h4{
margin:0;
text-transform:uppercase;
font-size:18px;
padding:14px 0;
border-bottom:1px solid rgba(255,255,255,0.35);
}
.menu-wrap ul {
list-style: outside none none;
padding: 0;
}
.menu-wrap ul.nav-menu > li {
padding-left: 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.menu-wrap li a {
color: #fff;
display: block;
}
.menu-wrap ul.nav-menu > li > a {
font-size: 14px;
padding: 11px 35px 11px 0;
}