Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created December 7, 2019 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmiller1990/bcd8f6fd99e8811a30ff2c57c7ec476e to your computer and use it in GitHub Desktop.
Save lmiller1990/bcd8f6fd99e8811a30ff2c57c7ec476e to your computer and use it in GitHub Desktop.
window.addEventListener('scroll', () => {
requestAnimationFrame(() => {
const percent = getScrollPercentage(progressStartMarker, progressEndMarker)
updateCircle(circle, percent)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment