module
scroll
ScrollTrigger maths: when an element crosses lines in the viewport, and how far through a scrubbed range the scroll is.
Structs
- Anchor
A point on the trigger element or viewport: a fraction of its height plus pixels (
"top"= 0,"center"= 0.5,"bottom"= 1,"80%","100px","center+=40"). - Edge
"<trigger anchor> <viewport anchor>", e.g."top 80%": the moment the trigger's top reaches 80% down the viewport. - ScrollTrigger
When a scroll-triggered animation plays: where it starts and ends in the viewport, whether it's scrubbed, and what each crossing does.