Created
March 2, 2022 11:02
-
-
Save daybrush/870ac84e60fe48407d5e1986f918d9e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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