-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpageA.css
78 lines (77 loc) · 2.28 KB
/
pageA.css
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
.a_background{width:100%;height:100%;position:absolute}
.a_background_top{width:100%;height:71.6%;background:url("images/background/a_background_top.png");background-size:100% 100%;}
.a_background_middle {width:100%; height:13.1%;background:url("images/background/a_background_middle.png");background-size:100% 100%;}
.a_background_botton {
width: 100%;
height: 15.3%;
background-image: url("images/background/a_background_botton.png");
background-size: 100% 100%;
}
.cloud{
z-index:2;position:absolute;
}
.cloud1 {
width: 20%;
height: 30%;
left: -5%;
top: 15%;
background: url("images/cloud1.png") no-repeat;
-webkit-animation-name: smallCloud;
-webkit-animation-duration: 30s;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: smallCloud;
-moz-animation-duration: 30s;
-moz-animation-iteration-count: infinite
}
.cloud2 {
top:-10px;
width: 20%;
height: 30%;
right: -5%;
background: url("images/cloud2.png") no-repeat;
-webkit-animation-name: largeCloud;
-webkit-animation-duration: 60s;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: largeCloud;
-moz-animation-duration: 60s;
-moz-animation-iteration-count: infinite;
}
@-webkit-keyframes smallCloud{
0%{left:-5%}
100%{left:100%}
}
@-moz-keyframes smallCloud{
0%{left:-5%}
100%{left:100%}
}
@-webkit-keyframes largeCloud{
0%{right:-5%}
100%{right:100%}
}
@-moz-keyframes largeCloud{
0%{right:-5%}100%{right:100%}
}
/*-------- 太阳自转以及动画 --------*/
#sun{
background:url("images/sun.png") no-repeat;
position:absolute;z-index:1;top:-30px;height:201px;width:201px;
right:30%;
-webkit-transform:rotate(45deg);
-webkit-animation-name:rotation;
-webkit-animation-duration:60s;
-webkit-animation-iteration-count:1;
-webkit-animation-fill-mode:forwards;
-moz-transform:rotate(45deg);
-moz-animation-name:rotation;
-moz-animation-duration:60s;
-moz-animation-iteration-count:1;
-moz-animation-fill-mode:forwards
}
@-webkit-keyframes rotation{
0%{transform:translateX(0) translateY(0) rotate(45deg)}
100%{transform:translateX(-2000px) translateY(400px) rotate(70deg)}
}
@-moz-keyframes rotation{
0%{transform:translateX(0) translateY(0) rotate(45deg)}
100%{transform:translateX(-2000px) translateY(400px) rotate(70deg)}
}