forked from asimhsidd/MMM-MP3Player
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
141 lines (138 loc) · 3.45 KB
/
style.css
File metadata and controls
141 lines (138 loc) · 3.45 KB
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
/*
* player css is amdended version of Shayan's player @ https://codepen.io/shayanea/pen/yvvjya
* Version 1.2.0 - 2020.09.14
*/
@import url("https://fonts.googleapis.com/css?family=Fira+Sans");
.player {
font-family: "Fira Sans", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
background-color: #fff;
border-radius: 15px;
width: 300px;
height: 80px;
z-index: 5;
-webkit-box-shadow: 0px 0px 117px -6px rgba(255,255,255,1);
-moz-box-shadow: 0px 0px 117px -6px rgba(255,255,255,1);
box-shadow: 0px 0px 117px -6px rgba(255,255,255,1);
display: flex;
/*justify-content: flex-end; */
}
.player .info {
padding: 15px 0px 0px 90px;
width:65%;
}
.player .info .artist,
.player .info .name {
display: block;
line-height: 1.0em;
}
.player .info .artist {
color: #222;
font-size: 16px;
margin-bottom: 4px;
}
.player .info .name {
color: #808080; /*#999*/
font-size: 16px; /*13px*/
margin-bottom: 8px;
}
.player .info .progress-bar {
background-color: #ddd;
height: 3px;
width: 100%;
position: relative;
}
.player .info .progress-bar .bar {
position: absolute;
left: 0;
top: 0;
bottom: 0;
background-color: #666;
transition: all 0.2s ease;
}
.player .album-art-found {
position: absolute;
left: -10px;
height: 80px;
width: 80px;
/* background-color:white; */
box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.2);
transform: scale(1.2);
transition: all 0.5s ease;
}
.player .album-art-found::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-position: center;
background-repeat: no-repeat;
background-size: 80px;
background-image: var(--backgroundImage);
}
.player .album-art {
position: absolute;
left: -10px;
height: 80px;
width: 80px;
border-radius: 50%;
background-color:white;
box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.2);
transform: scale(1.2);
transition: all 0.5s ease;
}
.player .album-art::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50%;
background-position: center;
background-repeat: no-repeat;
background-size: 50px;
background-image: url("music.png");
}
.player .album-art.active {
box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.4);
transform: scale(1.2);
transition: all 1s ease;
background: linear-gradient(270deg, #2f987d, #4190bd, #d29b2d, #4bd22d, #d2692d, #9e2dd2, #d22daf, #3f2dd2);
background-size: 1600% 1600%;
-webkit-animation: ColorChanger 20s ease infinite;
-moz-animation: ColorChanger 20s ease infinite;
animation: ColorChanger 20s ease infinite;
}
.player .album-art.active::before {
animation: rotation 3s infinite linear;
-webkit-animation: rotation 3s infinite linear;
animation-fill-mode: forwards;
}
@-webkit-keyframes ColorChanger {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@-moz-keyframes ColorChanger {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@keyframes ColorChanger {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}