I'm struggling to conceal a navigation element once the top of the #preFooter
section is scrolled to.
In order to make the nav element mobile-friendly, I have designed both the .tab-wrap
and .tab-wrap-mobile
.
To enable these elements to slide away when the top of the #preFooter
is reached, I have enclosed them in .tab-wrap-all
.
Unfortunately, the jQuery slideUp(); / slideDown();
methods are not functioning as smoothly as expected.
I suspect it has to do with how I've configured the display
settings in the CSS to hide the elements using media queries. However, I am unable to pinpoint the issue.
You can view the current state of the Fiddle here: https://jsfiddle.net/gavinfriel/0x68f545/