typewriter for input elements
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

simple-typewriter

installation

npm install --save simple-typewriter

usage

const element = document.querySelector('.some-element')
const interval = 100
const stopTypewriter = simpleTypewriter('test', element, { interval: interval })

// you can stop the typewriter if you need
stopTypewriter()

documentation

simpleTypewriter(text, element[, options])

argument required type description
text true String The text the typewriter will type out
element true Element The element on which to write the text
options false Object See options section

#### options

Supported parameters are:

argument required type description
interval true String The interval at which each letter is typed
nextText false Object nextText options

development

Install dependencies:

npm i

Run tests:

npm t
# or
npm t -- --watch