Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created June 27, 2019 18:25
Show Gist options
  • Save robertcedwards/08d9d56bad0a3202d478aaedd2e882cd to your computer and use it in GitHub Desktop.
Save robertcedwards/08d9d56bad0a3202d478aaedd2e882cd to your computer and use it in GitHub Desktop.
On hashchange scrollby
window.addEventListener("hashchange", function() { scrollBy(0, -50) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment