kontinu
v0.1.2
Published
Typed library to create endless scroll with no third-party dependency
Downloads
23
Readme
kontinu
Typed JavaScript library to create endless scroll with no third-party dependency nor Web API involed.
Installing
You can either copy/paste the source from dist/umd/kontinu.js to use as a browser script, or via package manager:
npm install kontinu
Quick Start
To use kontinu, you can observe a HTML element that is the last element. Then you can create a function to append more contents to the DOM.
kontinu.observe(lastElement, () => updateDOM());
To be more clear, see the Examples section.
Building
You can use your favorite package manager, install all the required developement dependencies:
yarn install
To build the project, you can invoke:
yarn build
Rollup will build into two types of modules, UMD and ESM.
Examples
You can find examples from the examples/ folder.