I need something to calculate how much of the element is off screen—only in the top and bottom of it.
I'm using a snippet to see if the element is partially visible, so I just need to know how much of it is not visible.
I know it's something between the currenTop
, element height and the size
of what the user can see, but I think I'm missing something.