v1.4.1-release/website
This commit is contained in:
@@ -10,13 +10,13 @@ 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 * 1.5) {
|
||||
if (window.scrollY >= LOGO_INIT + logo.offsetHeight * 2) {
|
||||
logo.classList.add('stickied');
|
||||
} else {
|
||||
logo.classList.remove('stickied');
|
||||
}
|
||||
if (get) {
|
||||
if (window.scrollY >= GET_INIT + get.offsetHeight * 1.5) {
|
||||
if (window.scrollY >= GET_INIT + get.offsetHeight * 2) {
|
||||
get.classList.add('stickied');
|
||||
} else {
|
||||
get.classList.remove('stickied');
|
||||
|
||||
Reference in New Issue
Block a user