Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 358 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 358 Bytes

jQuery viewport plugin

Features

$.fn.inViewport

  • Returns the elements from the selection which are visible in the viewport

$.fn.mostVisible

  • Calculates the first most visible element in the viewport

$.inViewport( element )

  • Returns the element's visibility in the viewport in a range from 0 (not visible) to 1 (completely visible)