Skip to content

varunpvp/typing-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typing-text

Type Writer effect on any HTML Element

usage

// get the element
const textElement = document.querySelector('.typing-text');

// make a string array
const devsLifecycle = [
    "eat.",
    "sleep.",
    "code.",
    "repeat.",
];

// start typing effect
setTyper(textElement, devsLifecycle);

Checkout the demo here: demo