typewriter
animated typing
Example
start;
Installation
$ component install matthewmueller/typewriter
Events
end
: emitted whentypewriter
finishesstart
: emitted whentypewriter
starts typingstop
: emitted when we manually stoptypewriter
restart
: 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.
;
#start()
Start the typewriter
typewriterstart
#stop()
Stop the typewriter
typewriter
#restart()
Restart the typewriter. Clears the input
typewriter
#clear()
Clear the typewriter input
typewriterclear;
License
MIT