Skip to content

Commit 8aa6f05

Browse files
committed
add auto typing text
1 parent 68296fb commit 8aa6f05

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

index.html

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
<h1>Hello World</h1>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Hello, I'am Zaka</title>
8+
<!-- Link CSS -->
9+
<link rel="stylesheet" type="text/css" href="css/main.css">
10+
<!-- javascript -->
11+
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
12+
13+
</head>
14+
<body>
15+
<!-- navigation -->
16+
<nav>
17+
</nav>
18+
19+
<!-- main -->
20+
<div class="main">
21+
<div class="text-typing">
22+
<h1 id="element"></h1>
23+
</div>
24+
</div>
25+
</body>
26+
27+
<!-- script in the end off body -->
28+
<script>
29+
var typed = new Typed('#element', {
30+
strings: ["Hello, I'm Zaka ^1000","Hello, I'm a programmer ^1000", "I focus on web development ^2000"],
31+
// smartBackspace : true,
32+
typeSpeed: 50,
33+
backSpeed: 15,
34+
loop : true,
35+
showCursor: true,
36+
cursorChar: '|',
37+
autoInsertCss: true
38+
});
39+
</script>
40+
</html>

0 commit comments

Comments
 (0)