-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-typing.html
59 lines (59 loc) · 1.28 KB
/
index-typing.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<style>
html,
body {
height: 100%;
padding: 40px;
background-color: #121212;
}
.center {
background: #202020;
margin: auto;
position: relative;
text-align: center;
top: 43%;
width: 20%;
}
p {
border-right: solid 3px rgba(0, 255, 0, 0.75);
white-space: nowrap;
overflow: hidden;
font-family: "Source Code Pro", monospace;
font-size: 28px;
letter-spacing: 0.15em;
color: rgba(0, 255, 0, 0.7);
position: absolute;
right: 10px;
/* Animation */
animation: animated-text 4s steps(17, end) 1s 1 normal both,
animated-cursor 600ms steps(17, end) 9;
}
/* text animation */
@keyframes animated-text {
from {
width: 0;
}
to {
width: 100%;
}
}
/* cursor animations */
@keyframes animated-cursor {
from {
border-right-color: rgba(0, 255, 0, 0.75);
}
to {
border-right-color: transparent;
}
}
</style>
</head>
<body>
<div class="center">
<p>Hello World!</p>
</div>
</body>
</html>