v1.4.1-beta/website

This commit is contained in:
2020-07-01 00:39:09 -04:00
parent 05c23f2dab
commit 935922224f
20 changed files with 103 additions and 48 deletions
+2 -2
View File
@@ -3,12 +3,12 @@ var GET_INIT = 0;
function handleSticky() {
const logo = document.querySelector('.logo');
const get = document.querySelector('.landing .link-button');
if (window.scrollY >= LOGO_INIT + logo.offsetHeight) {
if (window.scrollY >= LOGO_INIT + logo.offsetHeight * 1.5) {
logo.classList.add('stickied');
} else {
logo.classList.remove('stickied');
}
if (window.scrollY >= GET_INIT + get.offsetHeight) {
if (window.scrollY >= GET_INIT + get.offsetHeight * 1.5) {
get.classList.add('stickied');
} else {
get.classList.remove('stickied');