The v-intersect
directive utilizes the Intersection Observer API. It provides an easy-to-use interface for detecting when elements are visible within the user's viewport. This is also used for the v-lazy component.
Select your desired component from below and see the available props, slots, events and functions.
Below is a collection of simple to complex examples.
The v-intersect
directive accepts options. Available options can be found in the Intersection Observer API. Below is an example using the threshold
option.
While the Intersection Observer API is not available in IE11 by default, it can be implemented using a polyfill.
Ready for more? Continue reading with: