Edit this page

up.viewport up.viewport.get(target)
JavaScript function

This feature is experimental. It may be changed or removed in a future version.

Returns the scrolling container for the given element.

Returns the document's scrolling element if no closer viewport exists.


target stringorElementorjQuery

Return value

This website uses cookies to improve usability and analyze traffic.
I accept or learn more