-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
132 lines (114 loc) · 2.29 KB
/
style.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
@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;800;900&display=swap);
body {
font-family: 'Montserrat', sans-serif;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
h1 {
color: #fff;
}
.music-container {
box-shadow: 0px 48px 50px -4px rgba(0, 0, 0, 0.2);
background-color: rgba(255, 255, 255, 1);
border-radius: 15px;
display: flex;
margin: 100px 0;
padding: 20px 30px;
position: relative;
z-index: 10;
-webkit-box-shadow: 0px 48px 35px 6px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 48px 35px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0px 48px 35px 6px rgba(0, 0, 0, 0.2);
}
.img-container {
position: relative;
width: 100px;
}
.img-container img {
border-radius: 100%;
width: 110px;
width: inherit;
position: absolute;
bottom: 0;
left: 0;
animation: rotate 7s linear infinite;
animation-play-state: paused;
}
.music-container.play .img-container img {
animation-play-state: running;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.navigation {
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.aciton-btn {
background-color: #fff;
border: none;
color: #dfdbdf;
font-size: 20px;
cursor: pointer;
padding: 10px;
margin: 0 20px;
}
.aciton-btn.action-btn-big {
font-size: 30px;
color: #cdc2d0;
}
.music-info {
background-color: rgba(255, 255, 255, 0.5);
border-radius: 15px 15px 0 0;
position: absolute;
top: 0;
left: 20px;
padding: 10px 10px 10px 100px;
width: calc(100% - 150px);
opacity: 0;
transform: translateY(0%);
transition: transform 0.3s ease-in, opacity 0.3s ease-in;
z-index: 0;
}
.music-container.play .music-info {
opacity: 1;
transform: translateY(-100%);
}
.music-info h4 {
margin: 0;
}
.progress-contianer {
background: #fff;
border-radius: 5px;
cursor: pointer;
margin: 10px 0;
height: 4px;
width: 100%;
}
.progress {
background-color: #f0296e;
border-radius: 5px;
height: 100%;
width: 0%;
transition: width 0.1s linear;
}
footer a {
text-decoration: none;
color: #fff;
font-family: 'ZCOOL KuaiLe', cursive;
transition: color 0.5s;
}
footer a:hover {
color: aqua;
}