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

Go to api


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

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