Skip to content

Commit

Permalink
Merge pull request #873 from not-nullptr/master
Browse files Browse the repository at this point in the history
feat: scroll css variable for css theming users
  • Loading branch information
dimdenGD authored Jul 13, 2024
2 parents 7b45404 + 6df911e commit 860719f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ setTimeout(async () => {

// banner scroll
banner.style.top = `${5+Math.min(window.scrollY/4, 470/4)}px`;
document.querySelector(":root").style.setProperty("--scroll", `${window.scrollY}px`);

// load more stuff
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 1000) {
Expand Down

0 comments on commit 860719f

Please sign in to comment.