Structure
HTML
<div class="DSAudioPlayer">
<div class="blur"></div>
<div class="mainSection">
<div class="top">
<div class="trackTitle">Be The One</div>
<div class="trackSinger">Dua Lipa</div>
</div>
<div class="middle">
<div class="play">
<div class="playpausebtn"></div>
</div>
</div>
</div>
<div class="dashboard">
<div class="repeat"></div>
<div class="sound shake"></div>
<div class="share"></div>
</div>
</div>
CSS
@import url(https://fonts.googleapis.com/css?family=Oswald:400,300,700|Slabo+27px|Questrial);
div.DSAudioPlayer {
/**
top:-10px;
margin:50px auto;
**/
width: 400px;
height: 400px;
border-radius: 10px;
overflow: hidden;
position: relative;
}
div.DSAudioPlayer > .blur {
width: 100%;
height: 100%;
background-image: url("http://mersadesign.com/dsaudioplayer/audio/music0.jpg");
background-size: cover;
background-position: center;
filter: blur(7px);
-webkit-filter: blur(7px);
-moz-filter: blur(7px);
-ms-filter: blur(7px);
-o-filter: blur(7px);
}
div.mainSection,
div.dashboard {
position: absolute;
left: 0px;
border: 1px solid rgba(255, 255, 255, 0.2);
}
div.mainSection {
width: 100%;
height: 85%;
top: 0;
}
div.dashboard {
width: 100%;
height: 15%;
bottom: 0;
}
div.mainSection > .top,
div.mainSection > .middle {
width: 100%;
}
div.mainSection > .top {
height: 30%;
}
div.mainSection > .middle {
height: 70%;
margin-top: -20px;
}
div.middle > div:not(.centered-vertically) {
margin: -10px 10px 10px 10px;
}
div.dashboard > div:not(.centered-vertically) {
margin: 10px;
}
div.middle > div:not(.centered-vertically),
div.dashboard > div:not(.centered-vertically) {
display: inline-block;
vertical-align: middle;
}
div.middle > .centered-vertically,
div.dashboard > .centered-vertically {
display: inline-block;
vertical-align: middle;
height: 100%;
}
div.middle,
div.dashboard {
text-align: center;
}
div.dashboard > div:not(.centered-vertically) {
width: 30px;
height: 30px;
display: inline-block;
vertical-align: middle;
}
// ** Buttons ** //
div.middle > .play {
width: 138px !important;
height: 138px !important;
position: relative;
}
div.middle > .play > #slider {
float: left;
}
div.middle > .play > .playpausebtn {
background-image: url(http://mersadesign.com/dsaudioplayer/img/play.png);
background-size: 64px auto;
width: 64px !important;
height: 64px...