var lastScrollTop = 0; window.addEventListener('scroll', function() { var header = document.getElementById('masthead'); var currentScroll = window.scrollY; if (currentScroll > lastScrollTop) { // scrolling down header.classList.add('scrolledHeader'); } else { // scrolling up header.classList.remove('scrolledHeader'); } lastScrollTop = currentScroll; });
LOADING, PLEASE WAIT..

Featured Blog

Blog Posts

Load More Posts