Skip to content

youkwhd/kontinu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dead simple TypeScript library to create endless scroll

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published