-
Notifications
You must be signed in to change notification settings - Fork 15
/
sm_animation4.html
69 lines (56 loc) · 1.2 KB
/
sm_animation4.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
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100%;
height: 100px;
background-color: orange;
margin: 0 auto 20px auto;
border: 2px solid black;
box-sizing: border-box;
border-radius: 50%;
}
.d1 {
animation-name: couleur, essuieglace, taille;
animation-duration: 10s, 2s;
}
@keyframes couleur {
from {
background-color: orange;
}
50% {
background-color: purple;
}
to {
background-color: orange;
}
}
@keyframes taille {
from {
width: 100%
}
50% {
width: 50%;
}
to {
width: 100%;
}
}
@keyframes essuieglace {
from {
margin-top: 0px;
}
50% {
margin-top: 100px;
}
to {
margin-top: 0px;
}
}
</style>
</head>
<body>
<div class="d1"></div>
</body>
</html>