defaults
Defaults & options
Returns object Typed defaults & options
strings
Properties
typeSpeed
Properties
typeSpeednumber type speed in milliseconds
startDelay
Properties
startDelaynumber time before typing starts in milliseconds
backSpeed
Properties
backSpeednumber backspacing speed in milliseconds
smartBackspace
Properties
smartBackspaceboolean only backspace what doesn’t match the previous string
shuffle
Properties
shuffleboolean shuffle the strings
backDelay
Properties
backDelaynumber time before backspacing in milliseconds
fadeOut
Properties
fadeOutboolean Fade out instead of backspacefadeOutClassstring css class for fade animationfadeOutDelayboolean Fade out delay in milliseconds
loop
Properties
showCursor
Properties
showCursorboolean show cursorcursorCharstring character for cursorautoInsertCssboolean insert CSS for cursor and fadeOut into HTML <head>
attr
Properties
attrstring attribute for typing
Ex: input placeholder, value, or just HTML text
bindInputFocusEvents
Properties
bindInputFocusEventsboolean bind to focus and blur if el is text input
contentType
Properties
contentTypestring ‘html’ or ‘null’ for plaintext
onComplete
All typing is complete
Parameters
selfTyped
preStringTyped
Before each string is typed
Parameters
onStringTyped
After each string is typed
Parameters
onLastStringBackspaced
During looping, after last string is typed
Parameters
selfTyped
onTypingPaused
Typing has been stopped
Parameters
onTypingResumed
Typing has been started after being stopped
Parameters
onReset
After reset
Parameters
selfTyped
onStop
After stop
Parameters
onStart
After start
Parameters
onDestroy
After destroy
Parameters
selfTyped
HTMLParser
TODO: These methods can probably be combined somehow
Parse HTML tags & HTML Characters
Initializer
Initialize the Typed object
Typed
Welcome to Typed.js!
Parameters
Returns object a new Typed object
toggle
Toggle start() and stop() of the Typed instance
stop
Stop typing / backspacing and enable cursor blinking
start
Start typing / backspacing after being stopped
destroy
Destroy this instance of Typed
reset
Reset Typed and optionally restarts
Parameters
restartboolean?= nser