metonym/svelte-intersection-observer

Detect if an element is in the viewport using the Intersection Observer API

SvelteTypeScriptHTMLJavaScriptsveltetypescript-definitionsviewportlazy-loadingconditionalintersection-observersvelte-componentintersection-event
This is stars and forks stats for /metonym/svelte-intersection-observer repository. As of 28 Apr, 2024 this repository has 261 stars and 6 forks.

svelte-intersection-observer Detect if an element is in the viewport using the Intersection Observer API. Try it in the Svelte REPL. Installation Yarn yarn add -D svelte-intersection-observer NPM npm i -D svelte-intersection-observer pnpm pnpm i -D svelte-intersection-observer Usage Basic Use the bind:this directive to pass an element reference to the IntersectionObserver component. Then, simply bind to the reactive intersecting prop to determine if the element intersects the viewport. <script> ...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
TristanCopley/delnorte-csaSvelteJavaTypeScript0070
svelte-society/building-society-3d-grischaSvelteJavaScriptHTML7000
multitracks-com/.netTSQLHTMLC#00250
rocketseat-education/nlw-12-spacetime-igniteTypeScriptJavaScriptCSS45602260
creatorsgarten/kaogeek-discord-botTypeScriptJavaScriptDockerfile19701050
r2d4/react-llmTypeScriptJavaScriptOther6090300
bra1nDump/show-me-chatgpt-pluginTypeScriptHTMLOther6060560
formkit/formkitTypeScriptJavaScriptCSS3.6k01290
nuxtlabs/uiVueTypeScriptOther2k+52219+11
WanyueKJ/takeaway-uniappVueJavaScriptCSS3280550