Hi all
How to select a dom with a particular id:
<div class="nav-menu fixed-top">
With JQUERY I would do like:
function menuscroll() {
var $navmenu = $('.nav-menu');
if ($(window).scrollTop() > 50) {
$navmenu.addClass('is-scrolling');
} else {
$navmenu.removeClass("is-scrolling");
}
}
menuscroll();
Thanks a lot.