typedi for js code example
Example: typed js
yarn add typed.js
// or
npm install typed.js
// or
bower install typed.js
// in js file:
import Typed from 'typed.js';
const options = {
strings: ['<i>First</i> sentence.', '& a second sentence.'],
typeSpeed: 40
};
const typed = new Typed('.element', options);