Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3RO-O authored Nov 15, 2023
1 parent eae4022 commit 9620cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ burger.addEventListener('click', () => {
burger.classList.toggle('bar-change');
})


// Third Part : _4_cr1m3}
// Sticky navbar
window.addEventListener('scroll', () => {
navbar.classList.toggle('sticky', scrollY > 0)
})
})

0 comments on commit 9620cf4

Please sign in to comment.