.end
.end : Number
[read-only] The ScrollTrigger's ending scroll position (numeric, in pixels).
Details
[read-only] The ScrollTrigger's ending scroll position (numeric, in pixels). This value gets calculated when the ScrollTrigger is refreshed, so anytime the window/scroller gets resized it'll be recalculated.
For example, if the trigger element is 100px below the bottom of the viewport (out of view), and the ScrollTrigger's vars had end: "top bottom"
, then the ScrollTrigger's calculated end
property would be 100 (meaning it'd have to scroll 100px to hit the ending point).
The ScrollTrigger's start
and end
properties will always be numeric and reflect the scroll position in pixels.