-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheading.html
42 lines (39 loc) · 1 KB
/
heading.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heading</title>
<style>
.typewriter h1 {
overflow: hidden;
border-right: .15em solid orange;
white-space: nowrap;
margin: 0 auto;
letter-spacing: .15em;
animation:
typing 3.5s steps(30, end) infinite,
blink-caret .75s step-end infinite;
}
@keyframes typing {
0% { width: 0 }
50% { width: 100% }
100% { width: 0 }
}
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: orange }
}
.typewriter {
display: flex;
justify-content: center;
margin-top: 50px;
}
</style>
</head>
<body>
<div class="typewriter">
<h1>Hello i am Kunal</h1>
</div>
</body>
</html>