Skip to content

wwwAlireza/autoType.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

autoType.js

Auto-typing with JavaScript

how?

It takes the text, the element and the duration from you and prints the letters of the text in that
element word for word according to the duration (as if it were being typed);

how to use?

First link the autoType.js file to the page before all scripts

<script src="autoType.js"></script>

Then use the writer function to use autoType

Example :

javascript :
const p = document.querySelector("#myParagraph")
writer("Hello World", p, 230)