Methods
note
All Module methods are available in this class.
render
Moves the marquee by step and reapplies transforms to all items.
const marquee = new Marquee({ container });
marquee.render(2); // with step 2
marquee.render(-1); // with step -1
resize
Recomputes item sizes, clone count, and total loop size, then refreshes transforms.
const marquee = new Marquee({ container });
marquee.resize();
updateProps
Dynamically updates instance properties.
const marquee = new Marquee({ container });
marquee.updateProps({
enabled: false,
});
destroy
Destroys the instance and cleans up resources.
const marquee = new Marquee({ container });
marquee.destroy();