maciekgrzybek / svelte-inview

A Svelte action that monitors an element enters or leaves the viewport.🔥
MIT License
749 stars 23 forks source link

Update inview action type to support new Svelte5 syntax #50

Open jhubbardsf opened 1 month ago

jhubbardsf commented 1 month ago

Updating the action so that new Svelte5 event handler syntax is support like "oninview_change".

Fixes https://github.com/maciekgrzybek/svelte-inview/issues/49

Relevant Docs: https://svelte.dev/docs/svelte-action#types-actionreturn