Skip to content

Commit

Permalink
Create typewriter.html
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyagothi authored Feb 27, 2024
1 parent b077293 commit 67d3a59
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions typewriter/typewriter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset= "UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TYPEWRITER</title>
<link rel="stylesheet" href="typewriter.css">
</head>
<body >
<span class="text1">I am a </span>
<span class=" text"></span>

<script>
const typewriter = document.querySelector(".text");

function change(){

setTimeout(() => {
typewriter.textContent="Freelancer";
}, 0);

setTimeout(() => {
typewriter.textContent="Blogger";
}, 4000);

setTimeout(() => {
typewriter.textContent="Developer";
}, 8000);

}
change();
setInterval(() => {
change()
}, 12000);
</script>
</body>
</html>

0 comments on commit 67d3a59

Please sign in to comment.