1.0.2 • Published 10 years ago

slowtyping v1.0.2

Weekly downloads
3
License
MIT
Repository
-
Last release
10 years ago

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

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago