I've the need to react to window (viewport) scrolling to be able to detect when an element is visible or not.
The final goal is create something SIMILAR but not equal to an infinite scroller.
I want to learn to make it by myself. Do not link me plugins Please, I need to understand Vue.js before constructing over other's plugins.
How can I detect page (windows, or better the viewport) scrolling and resizing using Vue.js?
OR
How can I overseer the vertical position of an element, a div or a span, to react when it's near to be visibile ?
In the doc I found the @scroll
, but it react to the scrolling of an element, not of the page.