camwiegert/in-view
Get notified when a DOM element enters or exits the viewport. :eyes: observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3683
- days_rel: n/a
- days_push: 2502
- n_releases_24m: 0
Adoption not part of the score
4609 stars · 225 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
in-view is a small (~1.9kb gzipped), dependency-free JavaScript utility that notifies you when DOM elements enter or exit the viewport. It supports configurable offsets and visibility thresholds, and works in IE9+.
Use cases
- trigger animations when elements scroll into view
- lazy-load images when they enter the viewport
- pause videos when they scroll out of view
- track which sections of a page the user has seen
- fade elements in and out based on scroll position
- check whether a specific element is currently visible
When to choose
- you need a tiny, dependency-free viewport detection utility for older browsers like IE9+
- you want a simple event-based API for enter/exit notifications without learning IntersectionObserver
- you need configurable offsets and visibility thresholds for scroll-based triggers
When to avoid
- you only target modern browsers and prefer the native IntersectionObserver API
- you need advanced scroll tracking like velocity or parallax effects
- the project requires actively maintained dependencies, since the latest release was in 2019
Facets
library · maturity maintenance
ui-components animation developer-tools web-development frontend browser viewport-detection scroll-events intersection-observer dom lazy-loading javascript
3 sources
- readme: https://github.com/camwiegert/in-view · fetched 2026-08-28 · e7bd15191d6a
- homepage: https://camwiegert.github.io/in-view · fetched 2026-08-29 · 6e5a10d21082
- registry_npm: https://registry.npmjs.org/in-view · fetched 2026-08-29 · 0979c900c206
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| camwiegert/in-view | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="camwiegert/in-view")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem