ViewportMixin
Provides functionality for elements that can be scrolled into and out of view. Learn more.
Guides
Additional information about this section
Functions
Perform actions on an object
- onViewportEnter( )
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
- onViewportLeave( )
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.