Interface IScrollProgressStaticProps

Static properties for the ScrollProgress module

interface IScrollProgressStaticProps {
    __staticProp?: null;
    optimized?: boolean;
    root?: null | Element;
    section: Element;
    useSvh?: boolean;
}

Hierarchy (View Summary)

Properties

__staticProp?: null
optimized?: boolean

If true, progress is calculated only while the section is within the viewport or the root element. Improves performance by avoiding unnecessary calculations.

true
root?: null | Element

The 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.

null
section: Element

The element whose scroll progress is tracked.

useSvh?: boolean

If true, the scroll progress is calculated based on the small viewport height (svh in css) instead of the current viewport height (vh in css).

false