# williamngan/roll

roll and scroll tracking -- a tiny javascript library

Repository: https://github.com/williamngan/roll
Canonical: https://ross.abutalabs.com/products/williamngan-roll
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2017-04-28T05:38:39+00:00

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

## Adoption (not part of the score)
Stars 1004, forks 62 (observed 2026-08-28T04:03:11.349640+00:00)

## What it is
A tiny (~8kb) dependency-free JavaScript library for tracking scroll position, pagination, and step-based progress in DOM or canvas contexts. It emits 'roll' and 'step' events that you can hook into for scroll-driven slideshows, animations, and pagination logic.

## Use cases
- track scroll position in a DOM element
- build a scrolling slideshow with step events
- implement scroll-based pagination
- trigger animations based on scroll progress
- track position and steps in a canvas-based interface
- add css classes to steps as they come into view

## When to choose
- you need a lightweight, dependency-free scroll tracking utility
- you want event-driven pagination or step-based scroll logic
- you're building a scrolling slideshow and want simple css class toggling
- you need scroll tracking for both DOM and canvas contexts

## When to avoid
- you need a full-featured scroll animation library like GSAP ScrollTrigger
- you want scroll-linked parallax or complex timeline effects out of the box
- you need a framework-integrated scroll solution with React/Vue bindings
- you require active maintenance and recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, animation
- domain: web-development, frontend
- platform: browser
- tags: scroll-tracking, pagination, event-emitter, tiny-library, no-dependencies, javascript

## Member repositories
- williamngan/roll (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:11.349640+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-30T07:13:47.461556+00:00, confidence not recorded.
  - readme: https://github.com/williamngan/roll (fetched 2026-08-28T04:03:11.349640+00:00, sha 9b7b52a7deca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
