npm install native-typed --save
Getting Started
Step 1: Install
Download the latest release or install with npm.
Step 2: Reference
If you linked native-typed directly in your HTML, you can use window.NTyped. If you're using a module bundler, you'll need to import it.
Step 3: Use it
Initialize library by constructing it. The first argument is for HTML element and second optional one is for options.
new NTyped(element, options)
Options
strings (array)

The array of strings to display in typing animation.

strings : ['This is a typing animation!', 'You can also add your own sentences', 'So go do it!']

stringType (enum)

Determines whether provides strings are using HTML or not. You can choose between NTyped.Types.HTML and NTyped.Types.TEXT.

stringType : NTyped.Types.HTML

loop (boolean)

ake animation loop.

loop : true

showCursor (boolean)

Show cursor.

showCursor : true

cursorChar (string)

If cursor is enabled through options, show this character.

cursorChar : |

startDelay (int)

Time delay in milliseconds before typing writing animation starts initially.

startDelay : 500

backDelay (int)

Time delay in milliseconds before deleting characters after typing them out.

backDelay : 500

typeSpeed (int)

The speed of typing characters in milliseconds.

typeSpeed : 0

deleteSpeed (int)

The speed of deleting characters in milliseconds.

deleteSpeed : 0

classes (object)

Classnames.

cursor (string)

To have the cursor effect, please add blinking animation to the class in your stylesheet.

cursor : title__cursor

Inspired by