slowtyping

1.0.2 • Public • Published

SlowTyping

NPM version Build Status

S l o w T y p i n g

npm install slowtyping --save
browserify -r slowtyping -o bundle.js
<script src="bundle.js"></script>
<script>
var Typing = require('slowtyping')
var t = new Typing()
t.type('The text to type', document.getElementById('target_element'))
</script>

Intended to be used in a browser to simulate a typing visual effect. The words will come out slowly (according to the timing option).

The option variation can be used to get a random timing for each letter. For instance, if timing is 50 and variation is 10, you should get a timing of between 45 and 55 ms that varies with each letter.

It's pretty rudimentary I know. Whatever.

Darel Finkbeiner, MIT License

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i slowtyping

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • darelf