UNPKG

svelte-intersection-observer

Version:

Detects when an element enters or exits the viewport using the Intersection Observer API.

40 lines 1.04 kB
{ "name": "svelte-intersection-observer", "version": "2.2.0", "license": "MIT", "description": "Detects when an element enters or exits the viewport using the Intersection Observer API.", "author": "Eric Liu (https://github.com/metonym)", "type": "module", "svelte": "./index.js", "repository": { "type": "git", "url": "git+https://github.com/metonym/svelte-intersection-observer.git" }, "homepage": "https://metonym.github.io/svelte-intersection-observer/", "bugs": "https://github.com/metonym/svelte-intersection-observer/issues", "keywords": [ "svelte", "svelte component", "intersection observer", "viewport", "lazy-loading", "conditional" ], "main": "./index.js", "types": "./index.d.ts", "exports": { ".": { "types": "./index.d.ts", "svelte": "./index.js", "import": "./index.js" }, "./*.svelte": { "types": "./*.svelte.d.ts", "import": "./*.svelte" }, "./*": { "types": "./*.d.ts", "import": "./*.js" } } }