Optional
__staticOptional
optimizedIf true
, progress is calculated only while the section is within the viewport or the root element.
Improves performance by avoiding unnecessary calculations.
Optional
rootThe root element used as a reference for scroll progress calculation.
Usually it is the scroll container.
If null
, the viewport is used as the reference.
The element whose scroll progress is tracked.
Optional
useIf true
, the scroll progress is calculated based on the small viewport height (svh in css) instead of the current viewport height (vh in css).
Static properties for the ScrollProgress module