Menu show on scroll down
Support desk for Multipurpose Quark Theme
- GK User
- Wed Sep 27, 2017 9:12 am
Hi!
I´m trying to show the menu when the page scrolls down too, not only when it scroll up. Is there a way? I have configured the menu on classic mode and fixed, but it only shows when the page scrolls down.
Thanks in advanced!
I´m trying to show the menu when the page scrolls down too, not only when it scroll up. Is there a way? I have configured the menu on classic mode and fixed, but it only shows when the page scrolls down.
Thanks in advanced!
-
- Junior Boarder
- Joshua M
- Mon Oct 02, 2017 8:28 am
Hi,
You have to edit gk_quark/js/gk.menu.js file and change line 149 to:
and remove condition:
You have to edit gk_quark/js/gk.menu.js file and change line 149 to:
- Code: Select all
page_nav.css('top', '-45px');
and remove condition:
- Code: Select all
if(new_scroll_value >= prev_scroll_value) {
page_nav.css('top', (current - local_diff >= -150 ? current - local_diff : -150) + "px");
} else {
page_nav.css('top', (current - local_diff <= -45 ? current - local_diff : -45) + "px");
}
-
- Moderator
- GK User
- Mon Oct 02, 2017 3:09 pm
Works like a charm!
Thank you Joshua M, for your support!
One more thing...Is there a way to make the transition smoothly?
Thank you Joshua M, for your support!
One more thing...Is there a way to make the transition smoothly?
-
- Junior Boarder
3 posts
• Page 1 of 1