0.1.2 • Published 1 year ago

kontinu v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.1

1 year ago