Last active
June 23, 2016 09:38
-
-
Save timneutkens/760ec150e81909feed8e668ca1545359 to your computer and use it in GitHub Desktop.
Get space between element bottom and document bottom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPositionFromBottom(element) { | |
return $(document).height() - element.offset().top - element.outerHeight() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment