# janpaepke/ScrollMagic

The javascript library for magical scroll interactions.

Repository: https://github.com/janpaepke/ScrollMagic
Canonical: https://ross.abutalabs.com/products/scrollmagic
Homepage: http://ScrollMagic.io
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-04T09:26:15+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 39, longevity 100
- inputs: {"age_days": 4727, "days_push": 29, "days_rel": 194, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14955, forks 2115 (observed 2026-08-28T04:11:08.993093+00:00)

## What it is
ScrollMagic is a lightweight, zero-dependency JavaScript/TypeScript library for reacting to the user's scroll position, built as a convenience wrapper around IntersectionObserver and ResizeObserver. It provides scroll-position data, events, and progress values for building scroll-driven UX like parallax, pinning, class toggles, and lazy loading, while remaining framework-agnostic.

## Use cases
- trigger animations based on scroll position
- pin elements while scrolling (sticky sections)
- toggle CSS classes when elements enter the viewport
- add parallax effects to a website
- build infinite scrolling pages with ajax content loading
- sync animation playback to scrollbar movement (scrub)
- fire callbacks at specific scroll positions with progress values

## When to choose
- you need precise scroll-position events and progress data without a full animation library
- you want a tiny (~6KB), zero-dependency, framework-agnostic scroll foundation
- you need cross-browser scroll-driven behavior including custom scroll containers and horizontal scrolling
- you want to combine scroll tracking with GSAP, CSS, or your own animation code

## When to avoid
- you want a ready-made scroll animation solution out of the box (use GSAP ScrollTrigger or Motion)
- you only need pure CSS scroll-driven animations and can accept limited browser support
- you need deep scroll-linked animation timelines rather than scroll state and events

## Facets
- artifact type: library
- maturity: active
- function: animation, state-management, plugin-system, middleware
- domain: web-development, frontend, web-design
- platform: browser, cross-platform
- tags: scroll-interactions, scroll-animations, parallax, sticky-elements, intersectionobserver, typescript, zero-dependency, scroll-trigger, nodejs

## Member repositories
- janpaepke/ScrollMagic (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:08.993093+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-29T17:06:47.870672+00:00, confidence not recorded.
  - readme: https://github.com/janpaepke/ScrollMagic (fetched 2026-08-28T04:11:08.993093+00:00, sha fca2daea928a)
  - homepage: http://ScrollMagic.io (fetched 2026-08-29T08:05:04.436712+00:00, sha 021795e1aa51)
  - site_page: https://scrollmagic.io/docs/index.html (fetched 2026-08-29T08:05:04.440871+00:00, sha e92a1bfe86d6)
  - registry_npm: https://registry.npmjs.org/scrollmagic (fetched 2026-08-29T08:05:04.443421+00:00, sha 4bd1369a61ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
