forked from wbhima/CodeforALL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bouncetext.html
64 lines (58 loc) · 1.28 KB
/
bouncetext.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> bouncing text</title>
<style>
.bouncing{
font-size: 50px;
text-align: center;
margin-top: 50px;
animation-name: bouncing;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-delay: 1s;
}
.ODD{
animation-name: odd;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-delay: 1s;
}
@keyframes bouncing{
0%{
font-size: 55px;
}
50%{
font-size: 100px;
}
100%{
font-size: 55px;
}
}
@keyframes odd{
0%{
font-size: 100px;
}
50%{
font-size: 55px;
}
100%{
font-size: 100px;
}
}
</style>
</head>
<body>
<div id="float">
</div>
<div class="bouncing">
H<span class="ODD">a</span>c<span class="ODD">k</span>t<span class="ODD">o</span>b<span class="ODD">e</span>r <span class="ODD">f</span>e<span class="ODD">s</span>t 2<span class="ODD">0</span>2<span class="ODD">2</span>
</div>
</div>
</body>
</html>