Skip to content

Instantly share code, notes, and snippets.

@daybrush
Created March 2, 2022 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daybrush/f21876ae248e90f0c81920152b9706f3 to your computer and use it in GitHub Desktop.
Save daybrush/f21876ae248e90f0c81920152b9706f3 to your computer and use it in GitHub Desktop.
import Conveyer from "@egjs/conveyer";
const conveyer = new Conveyer(".items");
// Reads reactive properties
conveyer.isReachStart;
conveyer.isReachEnd;
// Subscribes reactive properties
conveyer.subscribe("isReachStart", isReachStart => {
console.log(isReachStart);
});
conveyer.subscribe("isReachEnd", isReachEnd => {
console.log(isReachEnd);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment