Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created December 7, 2019 08:44
Show Gist options
  • Save lmiller1990/f2ded2f1c31748d5528999dbf20a1f0b to your computer and use it in GitHub Desktop.
Save lmiller1990/f2ded2f1c31748d5528999dbf20a1f0b to your computer and use it in GitHub Desktop.
// start marker
Math.abs(document.body.getBoundingClientRect().top - startMarker.getBoundingClientRect().top)
// end marker
Math.abs(document.body.getBoundingClientRect().top - endMarker.getBoundingClientRect().top)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment