Retrieves the module's callbacks instance.
The current marquee coordinate.
Marquee gap
Indicates whether the instance has been destroyed.
After destruction, destroy is a no-op.
Check if the marquee is vertical
The name of the module, derived from the class name
Optional prefix for classnames used by the module
Current properties. Do not mutate these directly, use updateProps instead.
Total size of all elements in the marquee (width or height depending on direction)
Protected_addAdds prefixed classes to an element and removes them on destroy.
Skips classes that are already present on the element.
Target DOM element.
Unprefixed class name segments.
Protected_cnBuilds one or more prefixed class names.
Unprefixed class name segments.
Space-separated prefixed class string.
Protected_destroyStops playback, restores DOM, and removes container styles.
Protected_emitEmits a callback event with a fixed payload.
Set default mutable props
When need to use dynamic FPS factor to adjust the speed of the marquee.
Centers the marquee content within the container.
Enables or disables the marquee animation.
When false, the marquee will be paused.
The gap between the marquee elements. Supports css units like px, rem, vw, vh, svh.
Pauses the marquee when the mouse hovers over it.
Pauses the marquee when the element leaves the viewport.
The speed of the marquee animation. Supports css units like px, rem, vw, vh, svh.
Get default static props
Indicates whether to clone the marquee nodes. Can be set to false if DOM cloning is not preferred.
The container element that holds the marquee content.
Indicates the direction of the marquee animation.
Determines whether to apply the will-change CSS property to the marquee elements to optimize rendering.
Setting this to true may improve performance.
The debounce delay for the resize event in milliseconds.
Protected_handleSyncs mutable props into RAF playback and recalculates layout.
Adds a custom callback to the module.
The event type to listen for (e.g., 'props', 'destroy').
The function to execute when the event is triggered.
Additional settings for the callback.
Registers a function to run when the instance is destroyed.
If the instance is already destroyed, action runs immediately.
Cleanup function (for example remove listeners or DOM classes).
Renders the marquee, adjusting element positions.
Resizes the marquee, recalculating element positions and cloning if necessary.
Infinite marquee for horizontal or vertical looping content.
cloneNodesis enabledDocumentation