Skip to content

Instantly share code, notes, and snippets.

@Rameshwar-ghodke
Created September 2, 2021 05:09
Show Gist options
  • Save Rameshwar-ghodke/1277fcc38e7b31a7d1f08805f4262b78 to your computer and use it in GitHub Desktop.
Save Rameshwar-ghodke/1277fcc38e7b31a7d1f08805f4262b78 to your computer and use it in GitHub Desktop.
Auto Typing text Effect - Auto enter Text
<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