fixed JS adding wrong class

This commit is contained in:
Ross Trottier 2024-06-21 15:09:21 -06:00
parent 13d2f683c7
commit 7825ef8f17

View File

@ -25,7 +25,7 @@ window.addEventListener('scroll', function(event) {
if(scrollPosition < 5) {
iconBar.classList.remove('st-icon-bar-sticky');
siteTitle.classList.remove('st-title-scrolled');
siteTitle.classList.remove('st-title-scrolled-complete');
header.classList.remove('st-header-scrolled');
} else {
if(lastScrollPosition < 5) {
iconBar.classList.add('st-icon-bar-sticky');