69
rated 0 times
[
75]
[
6]
/ answers: 1 / hits: 22171
/ 10 Years ago, tue, november 4, 2014, 12:00:00
How to make this function add the class after scrolling 100vh
?
Currently it adds the class after 850px
.
$(document).ready(function($){
var nav = $('#verschwinden');
$(window).scroll(function () {
if ($(this).scrollTop() > 850) {
nav.addClass(doch);
} else {
nav.removeClass(doch);
}
});
});
More From » scroll