Skip to content

Commit

Permalink
Merge pull request #41 from fdnd/feature/styling-changes
Browse files Browse the repository at this point in the history
Supertof Cyd, thanks voor je hulp!
  • Loading branch information
ju5tu5 authored Aug 29, 2023
2 parents a1769fd + 88b26a9 commit c50af7b
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ dist

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

.vs-code
# yarn v2
.yarn/cache
.yarn/unplugged
Expand Down
1 change: 1 addition & 0 deletions docs/assets/img/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/assets/script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ function scrollHandler() {
if (Math.abs(lastScrollTop - scrollTop) <= delta) return
if (scrollTop > lastScrollTop && scrollTop > headerHeight) {
header.classList.add('header-up')
header.classList.remove('header-visible')
} else if (scrollTop < lastScrollTop) {
header.classList.remove('header-up')
header.classList.add('header-visible')
}
if (scrollTop > headerHeight) {
header.classList.add('has-scroll')
} else {
header.classList.remove('has-scroll')
}
lastScrollTop = scrollTop <= 0 ? 0 : scrollTop

Expand Down
Loading

0 comments on commit c50af7b

Please sign in to comment.