mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-21 18:43:03 -05:00
Update scroll.js
This commit is contained in:
1 parent
d6bafdd156
commit
dbb7d7e338
1 file changed
+5
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user