1.0.6 • Published 4 years ago

htmlautoscroll v1.0.6

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
4 years ago

htmlautoscroll

Automatically scroll top-to-bottom and bottom-to-top a webpage. DEMO

install

$ yarn add htmlautoscroll
# or
$ npm install --save htmlautoscroll

use

<script src="htmlautoscroll.js"></script>

<script type="text/javascript">
// start scrolling
htmlautoscrollStart(
  10, // scrolling speed in pixel per sec
  2000, // time to wait when an extremity is reached in milliseconds
  (bottom) => console.log('reached', bottom ? 'bottom' : 'top') // callback when an extremity is reached
);

// stop scrolling
htmlautoscrollStop();
</script>

license

MIT

1.0.6

4 years ago

1.0.4

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago