Skip to content

Instantly share code, notes, and snippets.

@daybrush
Created March 2, 2022 11:02
Show Gist options
  • Save daybrush/870ac84e60fe48407d5e1986f918d9e4 to your computer and use it in GitHub Desktop.
Save daybrush/870ac84e60fe48407d5e1986f918d9e4 to your computer and use it in GitHub Desktop.
import Conveyer from "@egjs/conveyer";
const conveyer = new Conveyer(".items");
conveyer.on("reachStart", () => {
// An event is fired when the scroll reaches the start point.
});
conveyer.on("reachEnd", () => {
// An event is fired when the scroll reaches the end point.
});
conveyer.on("leaveStart", () => {
// An event is fired when the scroll leaves at the start point.
});
conveyer.on("leaveEnd", () => {
// An event is fired when the scroll leaves at the end point.
});
conveyer.on("leaveEnd", () => {
// An event is fired when the scroll leaves at the end point.
});
conveyer.on("beginScroll", () => {
// An event is fired when scrolling begins.
});
conveyer.on("finishScroll", () => {
// An event is fired when scrolling is finished.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment