Auto-typing with JavaScript
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);
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
const p = document.querySelector("#myParagraph")
writer("Hello World", p, 230)