Created
September 2, 2021 05:09
-
-
Save Rameshwar-ghodke/1277fcc38e7b31a7d1f08805f4262b78 to your computer and use it in GitHub Desktop.
Auto Typing text Effect - Auto enter Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onclick="typeWriter()">Click here</button> | |
<p id='demo_txt'></p> | |
<script> | |
var i = 0; | |
var txt = 'Technical Support By Techrigel Systems Pvt. LTD.'; | |
var speed = 50; | |
function typeWriter() { | |
if (i < txt.length) { | |
document.getElementById("demo_txt").innerHTML += txt.charAt(i); | |
i++; | |
setTimeout(typeWriter, speed); | |
} | |
} | |
</script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment