UNPKG

astro-scroll-observer

Version:

Viewport scroll position and direction watcher. Binds states data attributes to `HTML` for further JS/CSS usage. Scroll event is throttled for performance economy.

51 lines (50 loc) 1.25 kB
{ "name": "astro-scroll-observer", "version": "0.5.3", "description": "Viewport scroll position and direction watcher.\nBinds states data attributes to `HTML` for further JS/CSS usage.\nScroll event is throttled for performance economy.", "keywords": [ "astro", "astro-component", "scroll", "observer", "html", "viewport", "css", "toggle", "scrolling", "position", "document", "watch", "window" ], "homepage": "https://code.juliancataldo.com/component/astro-scroll-observer", "bugs": { "url": "https://github.com/JulianCataldo/web-garden/issues" }, "repository": { "type": "git", "url": "https://github.com/JulianCataldo/web-garden", "directory": "app/ScrollObserver" }, "license": "ISC", "author": "Julian Cataldo", "type": "module", "main": "index.ts", "files": [ "use-scroll-observer.scss", "ScrollObserver.client.ts", "ScrollObserver.astro", "index.ts", "CHANGELOG.md" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { "lodash-es": "^4.17.21" }, "devDependencies": { "@types/lodash-es": "^4.17.6" }, "gitHead": "6b367b0e5f718cc1bcd52f40ca1f680343e3008c" }