Edit this page

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

This feature has been deprecated. Use up.viewport.get() instead.

Load unpoly-migrate.js to enable deprecated features.

Returns the scrolling container for the given element.

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

Parameters

target stringorElementorjQuery

Return value

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