Hi
with this template, when I click in the menu, all page is scrolling up automatically. You can test it in your demo.
Could you help me to fix it please?
Thanks in advance
Regards
jQuery(document).ready(function() {
// Fix for iOS devices with iOS >= 8.0
var menuWrap = jQuery('#gkMenuWrap');
if(menuWrap.length) {
jQuery(window).on('scroll', function(e) {
if(menuWrap.hasClass('active')) {
menuWrap.css('top', jQuery(window).scrollTop());
} else {
menuWrap.css('top', '-100px');
}
});
}
// Code for main menu
if(jQuery('#gkExtraMenu')) {
// fix for the iOS devices
jQuery('#gkExtraMenu ul li span').each(function(el) {
el.attr('onmouseover', '');
});
/* Fixed menu */
#gkMenuWrap {
background: #fff;
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
box-shadow: 0 0 6px rgba(0, 0, 0, .26);
height: 70px;
left: 0;
position: fixed;
top: -100px;
width: 100%;
z-index: 1001;
}
.imageBg #gkMenuWrap {
-webkit-transition: top .2s ease-out;
-moz-transition: top .2s ease-out;
-ms-transition: top .2s ease-out;
-o-transition: top .2s ease-out;
transition: top .2s ease-out;
}
/* Fixed menu */
#gkMenuWrap {
background: #fff;
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, .26);
box-shadow: 0 0 6px rgba(0, 0, 0, .26);
height: 70px;
left: 0;
position: absolute;
top: -100px;
width: 100%;
z-index: 1001;
}