-
Notifications
You must be signed in to change notification settings - Fork 0
/
chapter4.html
59 lines (59 loc) · 1.4 KB
/
chapter4.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
margin: 30px;
animation: slide 5s infinite;
}
#circle1 {
animation-timing-function: ease-in-out;
background: #e84855;
}
#circle2 {
animation-timing-function: linear;
background-color: #0099ff;
}
#circle3 {
animation-timing-function: cubic-bezier(0, 1, 76, 1.14);
background-color: #ffcc00;
}
.container {
width: 550px;
background-color: #ffffff;
border: 3px #ccc dashed;
border-radius: 10px;
padding-top: 5px;
padding-bottom: 5px;
margin: 0 auto;
}
@keyframes slide {
0% {
transform: translate3d(0, 0, 0);
}
25% {
transform: translate3d(380px, 0, 0);
}
50% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}
</style>
</head>
<body>
<div class="container">
<div class="circle" id="circle1"></div>
<div class="circle" id="circle2"></div>
<div class="circle" id="circle3"></div>
</div>
</body>
</html>