Skip to main content
Version: 1.0.2

Listen to Events

You can listen to Conveyer's events with Conveyer#on

Since events occur during initialization, set [autoInit(api/ConveyerOptions) to false if you want to register events.

import Conveyer from "@egjs/conveyer";

const conveyer = new Conveyer(".items", {
autoInit: false,
});

conveyer.on("scrollStart", evt => {
console.log(evt);
});

conveyer.init();

See all available events at Conveyer#events.