landingpage_tupale/scripts.js

7 lines
155 B
JavaScript
Raw Normal View History

2017-03-03 14:02:40 +00:00
$(window).scroll(function() {
if ($(document).scrollTop() > 50) {
$('nav').addClass('shrink');
} else {
$('nav').removeClass('shrink');
}
});