-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AnimationTut1.html
47 lines (46 loc) · 1.23 KB
/
AnimationTut1.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
<!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>Text Animation Colors</title>
<style>
div {
padding: 1rem;
width: 250px;
height: 100px;
animation-name: textbox;
animation-duration: 6s;
}
@keyframes textbox {
0% {
background-color: red;
color: aqua;
}
25% {
background-color: palevioletred;
color: yellow;
}
50% {
background-color: blueviolet;
color: blanchedalmond;
}
75% {
background-color: goldenrod;
color: red;
}
100% {
background-color: rgb(217, 255, 0);
color: rgb(0, 132, 255);
}
}
</style>
</head>
<body>
<div>
<h1>CSS ANIMATIONS</h1>
</div>
<p>The animation will end and get back to its original form after the time-frame.</p>
</body>
</html>