javascript typed code example
Example 1: typed.js
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
Example 2: 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);