JS: Delayed Text Display
Delay each item in an array to be written to the screen creating a typing effect horizontally or vertically.
Options that you are encouraged to edit:
- var
obj
can bestr
orarr
. - var
direction
can be'h'
or'v'
. - var
delay
can be changed to any number greater than zero. The default delay is in theinit()
function and set to 1s for vertical and 150ms for horizontal.
View the modularized project as a stand-alone library at github: chardelay.js