Skip to content

Commit

Permalink
Update scroll.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PranshulGG authored Aug 25, 2024
1 parent d6bafdd commit dbb7d7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/assets/modules/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ weatherWrap.addEventListener('scroll', function() {
mainWeat.style.opacity = newOpacity;
document.querySelector('.froggie').style.opacity = newOpacity;

if(scrollPosition > 100){
document.querySelector('.header-top').classList.add('use');
if(scrollPosition > 100){
document.querySelector('.header-top').classList.add('use');

} else{
document.querySelector('.header-top').classList.remove('use');
} else{
document.querySelector('.header-top').classList.remove('use');

}
}
ticking = false;
});
ticking = true;
Expand Down

0 comments on commit dbb7d7e

Please sign in to comment.