For Enterprise

The v-scroll directive allows you to provide callbacks when the window or a specifically defined element are scrolled.

The default behavior is to bind to the window. If no additional configuration options are needed, you can simply pass your callback function.

Select your desired component from below and see the available props, slots, events and functions.

Below is a collection of simple to complex examples.

For a more fine tuned approach, you can designate the target to bind the scroll event listener.

Ready for more? Continue reading with:

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!