0.0.2 • Published 10 years ago
matthewmueller-typewriter v0.0.2
typewriter
animated typing
Example

typewriter('#typewriter', 'Hello world!').start();Installation
$ component install matthewmueller/typewriterEvents
end: emitted whentypewriterfinishesstart: emitted whentypewriterstarts typingstop: emitted when we manually stoptypewriterrestart: emitted when we manually restarttypewriter
API
typewriter(el, str, delay)
Initialize Typewriter on a given el, with the string str and delay. If no delay is specified, it defaults to 100.
typewriter('#header', 'Hello world!', 200);#start()
Start the typewriter
typewriter.start()#stop()
Stop the typewriter
typewriter.stop()#restart()
Restart the typewriter. Clears the input
typewriter.restart()#clear()
Clear the typewriter input
typewriter.clear();License
MIT
0.0.2
10 years ago