Created
January 3, 2019 13:59
-
-
Save cagartner/5e7e07e5f75d833b727a7c408199f6ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onscroll = function () { | |
if ($(window).scrollTop() >= 135) { | |
$('body').addClass('menu-sticked'); | |
} else { | |
$('body').removeClass('menu-sticked'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment