# camwiegert/in-view

Get notified when a DOM element enters or exits the viewport. :eyes:

Repository: https://github.com/camwiegert/in-view
Canonical: https://ross.abutalabs.com/products/in-view
Homepage: https://camwiegert.github.io/in-view
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, utility, viewport
Archived: true
Last push: 2019-10-27T19:45:24+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3683, "days_push": 2502, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4609, forks 225 (observed 2026-08-28T04:08:54.956352+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: ui-components, animation, developer-tools
- domain: web-development, frontend
- platform: browser
- tags: viewport-detection, scroll-events, intersection-observer, dom, lazy-loading, javascript

## Member repositories
- camwiegert/in-view (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:54.956352+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:43.791152+00:00, confidence not recorded.
  - readme: https://github.com/camwiegert/in-view (fetched 2026-08-28T04:08:54.956352+00:00, sha e7bd15191d6a)
  - homepage: https://camwiegert.github.io/in-view (fetched 2026-08-29T09:04:49.408221+00:00, sha 6e5a10d21082)
  - registry_npm: https://registry.npmjs.org/in-view (fetched 2026-08-29T09:04:49.417215+00:00, sha 0979c900c206)
- Data as of 2026-08-30T08:39:29.467469+00:00.
