useElementVisibility
Tracks the visibility of an element within the viewport.
Demo
Usage
Component Usage
This function also provides a renderless component version via the
@vueuse/components
package. Learn more about the usage .
Directive Usage
This function also provides a directive version via the
@vueuse/components
package. Learn more about the usage .