triggerjs/trigger
A library for creating scroll-based animation with HTML attributes and CSS variables. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 20
- Release rhythm 8
- Longevity 100
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: 1779
- days_rel: n/a
- days_push: 481
- n_releases_24m: 0
Adoption not part of the score
1266 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Trigger JS is a small TypeScript library that creates scroll-based animations using HTML attributes and CSS variables, without writing JavaScript. It binds scroll position to CSS custom properties that you consume in your stylesheets.
Use cases
- animate elements based on scroll position without writing JavaScript
- scrub a video-like animation forward and backward by scrolling
- bind scroll progress to a CSS variable for transforms and styles
- add scroll-triggered effects to a webpage using only HTML attributes
- create parallax or reveal animations with pure CSS
When to choose
- you want scroll-driven animations without a JavaScript animation framework
- you prefer configuring animations declaratively via HTML attributes
- your animations can be expressed purely in CSS using variables
When to avoid
- you need complex timeline-based or physics-based animation logic
- you need scroll animations in a non-browser environment
- you want keyframe-based animation libraries like GSAP with rich easing controls
Facets
library · maturity active
animation frontend-framework web-development frontend web-design browser scroll-animation css-variables html-attributes no-javascript typescript javascript
1 source
- readme: https://github.com/triggerjs/trigger · fetched 2026-08-28 · e08390d65f59
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| triggerjs/trigger | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="triggerjs/trigger")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem