-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (93 loc) · 1.53 KB
/
index.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Animate Text</title>
<style>
body{
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
font-size:16px;
}
.titles{
position:relative;
width:100px;
height:100px;
}
.title{
display:inline-block;
position:relative;
width:100px;
text-align:center;
top:0;
}
.title:not(:first-child){
opacity:0;
margin-left:-100px;
}
.title1 {
animation-name: anim1;
animation-duration: 5s;
animation-delay: 5s;
animation-iteration-count: infinite;
}
.title2 {
animation-name: anim2;
animation-duration: 5s;
animation-delay: 5s;
animation-iteration-count:infinite;
}
.title3 {
animation-name: anim3;
animation-duration: 5s;
animation-delay: 5s;
animation-iteration-count: infinite;
}
/* The animation code */
@keyframes anim1 {
0%, 100%{
opacity: 1;
top:0px;
}
33.33%{
opacity: 0;
top:-15px;
}
66.66%{
opacity: 0;
top:15px;
}
}
@keyframes anim2 {
0%{
opacity: 0;
top:15px;
}
33.33%{
opacity: 1;
top:0px;
}
66.66%, 100%{
opacity: 0;
top:-15px;
}
}
@keyframes anim3 {
0%, 33.33%{
opacity: 0;
top:15px;
}
66.66%{
opacity: 1;
top:0px;
}
100%{
opacity: 0;
top:-15px;
}
}
</style>
</head>
<body>
<span class="intro">A<span class="titles"><span class="title title1">Front-end</span><span class="title title2">Back-end</span><span class="title title3">Full-stack</span></span>developer.</span>
</body>
</html>