-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSS Animation.html
71 lines (61 loc) · 1.71 KB
/
CSS Animation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Animations</title>
<style>
.container{
background-color: rgb(18, 170, 170);
height: 80vh;
width: 30vw;
}
.box{
width: 34px;
height: 45px;
/* animation-name: TereBhaiKaAnimation;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-out;
animation-delay: 1s;
animation-direction: alternate-reverse;
animation-play-state: paused;*/
/* animation: name duration timing-function delay iteration-count direction fill-mode; */
animation: TereBhaiKaAnimation 2s ease-in-out 3s 1,
Tere2 3s ease-in-out 3s 1;
}
@keyframes TereBhaiKaAnimation {
from{
background-color: red;
}
to{
background-color: yellow;
}
}
@keyframes Tere2 {
0%{
transform: rotate(100deg);
}
20%{
transform: rotate(200deg);
}
50%{
transform: rotate(220deg);
}
80%{
transform: rotate(300deg);
}
100%{
transform: rotate(310deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="box">
Box
</div>
</div>
</body>
</html>