Typewriter.js is a jQuery plugin for displaying text using a typewriter effect.
Download typewriter.js and add it to your project.
Method | Details |
---|---|
.typeIt(text, typeDelay, format) |
text The text you want to have typed. typeDelay The base delay value to use between the display of each character. Typewriter.js automatically adds some variability to make the typing effect more natural. A value of 0.06 produces good results. format This can be either 'text' or 'html'. Use 'html' if you want to include line breaks. There is currently no support for text formatting tags (bold, italics etc). |
.deleteIt(amount, rate) |
amount The number of characters to delete from the end of element. rate The base delay value to use between the deletion of each character. Typewriter.js automatically adds some variability to make the backspace effect more natural. |
.pauseIt(seconds) |
seconds The number of seconds to pause before continuing. |
.hideCursor() |
Hides the blinking cursor. |
.showCursor() |
Shows the blinking cursor. |
.clearIt() |
Clears all typed text. |
.destroyIt() |
Destroys all typewriter related content contained in the object. |