scroller_string

0.1.2 • Public • Published

Installation

npm i scroller_string

Example code

const Scroller = require('scroller_string')

// The first argument is the string that will be scrolled
// The second argument is the amount of letters on one print process
var scrll = new Scroller('this is a test', 4)

setInterval(() => {
    scrll.scroll(/* a number (default 1) to scroll*/) // returns the scrolled string
    console.log(scrll.scrolled) // or get the string here
}, 800);

The output should look like this

image

Readme

Keywords

Package Sidebar

Install

npm i scroller_string

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

2.39 kB

Total Files

3

Last publish

Collaborators

  • 1euro7cent