-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path轮播图CSS3.html
127 lines (104 loc) · 2.34 KB
/
轮播图CSS3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<style>
*{
margin: 0;border: 0;list-style: none;
}
.a{
position:absolute;
top: 25px;
left: 0px;
width:200px;
height:100px;
background:green;
opacity: 0.5;
animation:aa 5s;
}
@keyframes aa{
0% {}
20% {background:green;top: 50px;opacity: 0;left:0px;width:100px;height:50px;}
40% {}
60% {top: 50px;left: 700px;width:100px;height:50px;background:black;opacity: 0.1;}
80% {}
100% {background:yellow;top:25px;left:500px;width:200px;height:100px;}
}
.b{
position:absolute;
top: 0px;
left: 200px;
width:300px;
height:150px;
background:red;
animation:bb 5s;
}@keyframes bb{
0% {}
20% {background:green;top: 25px;left: 0px;width:200px;height:100px;opacity: 0.5;}
40% {}
60% {background:green;top: 50px;opacity: 0;left:0px;width:100px;height:50px;}
80% {}
100% {top: 50px;left: 700px;width:100px;height:50px;background:black;opacity: 0.1;}
}
.c{
position:absolute;
top: 25px;
left: 500px;
width:200px;
height:100px;
background:yellow;
opacity: 0.5;
animation:cc 5s;
}@keyframes cc{
0% {}
20% {background:red;left: 200px;top:0px;width:300px;height:150px;opacity: 1;}
40% {}
60% {background:green;top: 25px;left: 0px;width:200px;height:100px;opacity: 0.5;}
80% {}
100% {background:green;top: 50px;opacity: 0;left:0px;width:100px;height:50px;}
}
.d{
position:absolute;
top: 50px;
left: 700px;
width:100px;
height:50px;
background:black;
opacity: 0.1;
animation:dd 5s;
}@keyframes dd{
0% {}
20% {top: 25px;left:500px;width:200px;height:100px;background:yellow;opacity:0.5;}
40% {}
60% {top: 0px;left: 200px;width:300px;height:150px;background:red;opacity:1;}
80% {}
100% {top: 25px;left: 0px;width:200px;height:100px;background:green;opacity: 0.5;}
}
.e{
position:absolute;
top: 50px;
left: 700px;
width:100px;
height:50px;
background:black;
opacity: 0;
animation:ee 5s;
}@keyframes ee{
0% {}
20% { top: 50px;left: 700px;width:100px;height:50px;opacity: 0.1;}
40% {}
60% {top: 25px;left: 500px;width:200px;height:100px;background:yellow;opacity: 0.5;}
80% {}
100% {top: 0px;left: 200px;width:300px;height:150px;background:red;opacity:1}
}
</style>
</head>
<body>
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
<div class="d"></div>
<div class="e"></div>
</body>
</html>