marko krstić

Collections

Archives

Show navigation on scroll up

var prevScrollpos = window.pageYOffset;
window.onscroll = function() {
var currentScrollPos = window.pageYOffset;
  if (prevScrollpos > currentScrollPos) {
    var element = document.getElementById("_header_row-335-8");
  	element.classList.add("mystyle");
  } else {
    var element = document.getElementById("_header_row-335-8");
  	element.classList.remove("mystyle");
  }
  prevScrollpos = currentScrollPos;
}

Let's Connect

Feel free to reach out for collaborations or just a friendly hello ?
[email protected]
linkedininstagramdribbblefacebook-official