1
Next friends, I have this code:
//Function that hides/shows subnavbar according to scrolling
$('#view-2').scroll(function() {
var topo = $(this).scrollTop(); // = 0
if (topo > 0){
$('.subnavbar').fadeOut();
} else {
$('.subnavbar').fadeIn();
}
console.log(topo);
});
Works perfectly, but wanted to make, with a scroll up (scrollUp), appear again the navbar?
Could help me with logic and the solution?
Perfect friend! Thank you!
– Guilherme Lirio