
Svelte Inview
Monitor Elements entering or leaving the Viewport
Creator
Maciek Grzybek @grzybek_maciek
Description
Svelte Inview is a Svelte action that monitors an element enters or leaves the viewport/parent element. It's performant and efficient thanks to using Intersection Observer under the hood. Svelte Inview can be used in multiple projects including lazy loading images, infinite scrolling, playing/pausing the video when in the viewport, tracking user behaviour firing link pre-fetching and animations and many many more.Visit Site