Optional
initialProps: StaticProps & ChangeablePropsChecks if the module has been destroyed.
Checks if the module has been initialized.
The name of the module, derived from the class name
Optional prefix for class names used by the module
Returns the current global progress of the scroll.
Returns the progress of the section as it appears in the viewport.
Returns the progress of the section as it moves through the viewport.
Returns the progress of the section as it exits the viewport.
The current properties of the module, which include both static and changeable properties. These can be retrieved dynamically during the module's lifecycle.
Returns the global scope of the scrolling section.
Returns the scope of the section appearing in the viewport.
Returns the scope of the section moving through the viewport.
Returns the scope of the section disappearing from the viewport.
Returns the scroll container.
The scroll container.
Returns the section element being tracked.
Adds a custom callback to the module.
Adds a DOM event listener that will be automatically removed when the module is destroyed.
The target element for the event listener.
The event type to listen for (e.g., 'click', 'resize').
The callback function to execute when the event is triggered.
Optional
options: boolean | AddEventListenerOptionsAdditional options for the event listener.
Adds a plugin to the component. The plugin is initialized upon being added,
and the plugin's component
property is set to the current component instance.
An instance of the Plugin class to be added.
Adds responsive property rules to the module. This must be done before initialization.
The responsive property rules to be added.
Adds a viewport callback that will be automatically removed when the module is destroyed.
The viewport target (e.g., width or height).
The callback function to execute when the viewport target changes.
Additional data for the callback.
SectionScrollProgress
is a component that traces the scroll progress of a specified section. It provides the progress of entering the viewport, moving within it, and exiting it.Link
See examples https://antonbobrov.github.io/vevet-demo/section-scroll-progress/
Link
See docs https://antonbobrov.github.io/vevet/classes/SectionScrollProgress.html