-
Notifications
You must be signed in to change notification settings - Fork 36
/
demo.css
150 lines (132 loc) · 2.58 KB
/
demo.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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
body {
margin: 0;
}
.bg {
position: fixed;
height: 100%;
width: 100%;
background-position: center center;
}
.bg img {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
transition: opacity 1s, transform 180s;
opacity: 0;
transform: scale(1.2,1.2);
transition-timing-function: ease-out;
}
.bg img.show {
opacity: 1;
}
.mask {
position: fixed;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.3);
}
.player {
font-family: 微软雅黑;
width: 300px;
height: 154px;
background-color: rgba(0, 0, 0, 0.3);
position: fixed;
left: 20px;
bottom: 20px;
background-size: 100% 100%;
background-position: center center;
overflow: hidden;
}
.player .logo {
position: relative;
width: 100%;
height: 100%;
}
.player .logo img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: margin-top 1s;
-moz-transition: margin-top 1s;
-webkit-transition: margin-top 1s;
-o-transition: margin-top 1s;
margin-top: 100%;
display: block;
}
.player .logo img.show {
margin-top: 0px;
}
.player .control {
position: absolute;
top: 38%;
left: 10px;
font-size: 55px;
color: #fff;
text-shadow: 0px 0px 1px rgb(0, 0, 0);
}
.player .control:hover {
text-shadow: 0px 0px 5px rgb(0, 0, 0);
}
.player .next {
position: absolute;
top: 55%;
left: 65px;
font-size: 35px;
color: #fff;
text-shadow: 0px 0px 1px rgb(0, 0, 0);
}
.player .next:hover {
text-shadow: 0px 0px 5px rgb(0, 0, 0);
}
.player .name {
position: absolute;
bottom: 12px;
left: 5px;
text-shadow: 0px 0px 2px rgb(0, 0, 0);
white-space: nowrap;
color: #fff;
cursor: default;
}
.player .progress {
position: absolute;
bottom: 0;
left: 0;
background-color: rgba(80, 168, 255, 0.6);
height: 7px;
width: 100%;
cursor: pointer;
}
.player .progress .now {
transition: width 0.3s;
-moz-transition: width 0.3s;
-webkit-transition: width 0.3s;
-o-transition: width 0.3s;
background-color: rgba(255, 255, 255, 0.8);
height: 7px;
width: 0px;
}
.player .time {
color: #fff;
font-size: 28px;
position: absolute;
top: 50%;
text-shadow: 0px 0px 2px rgb(0, 0, 0);
cursor: default;
right: 20px;
}
.start {
position: fixed;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 9;
text-align: center;
color: #fff;
font-size: 50px;
cursor: pointer;
padding-top: 20%;
}