vue实现一个盘式音乐播放器ui效果代码
代码语言:html
所属分类:布局界面
代码描述:vue实现一个盘式音乐播放器ui效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Muli:400,700,900");
#yt-player {
background-color: #000;
position: absolute;
opacity: 0;
}
@-webkit-keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
body,
html {
background-color: #A7C1DD;
height: 100%;
position: relative;
z-index: -1;
}
.wrapper {
display: grid;
grid-template-rows: 1fr auto;
height: 100%;
margin: 0 auto;
position: relative;
width: 578px;
}
.wrapper .cp {
text-align: center;
margin-bottom: 10px;
}
.wrapper .cp a {
color: #82a7cf;
}
.player {
align-self: center;
background: linear-gradient(168.53deg, #4b75a0 -45.66%, #3b5c7d 84.26%);
border-radius: 10px;
box-shadow: 0px 8px 4px rgba(0, 0, 0, 0.2);
display: grid;
grid-template-rows: 315px 90px 7px;
height: 405px;
margin: 130px auto 0;
position: relative;
width: 578px;
}
.player:before {
content: "";
background: #335a85;
border-radius: 10px;
bottom: -30px;
filter: blur(90px);
height: 370px;
left: 20px;
position: absolute;
right: 20px;
z-index: -1;
}
.player .top {
position: relative;
}
.player .top .artist {
color: #fff;
font-family: Muli;
left: 0;
position: absolute;
text-transform: uppercase;
top: -100px;
z-index: 1;
}
.player .top .artist .name {
color: rgba(255, 255, 255, 0.3);
font-size: 17px;
letter-spacing: 4px;
line-height: 20px;
position: relative;
}
.player .top .artist .name:after {
background: #fff;
content: "";
height: 2px;
left: -30px;
position: absolute;
top: 8px;
width: 20px;
}
.player .top .artist .title {
font-size: 60px;
font-weight: 700;
line-height: 73px;
}
.player .top .time {
color: #fff;
font-family: Muli;
font-size: 90px;
position: absolute;
right: 0;
top: -148px;
}
.player .top .time .complete {
color: rgba(255, 255, 255, 0.3);
margin: 0 0 0 -40px;
}
.player .top .time .current {
font-weight: 700;
margin: -70px 0 0 0;
}
.player .top .record-wrapper {
height: 425px;
overflow: hidden;
transform: translateY(-70px);
}
.player .top .record-wrapper .record {
background-image: linear-gradient(130deg, #070809 24%, #070809 35%, #676767 49%, #070809 64%, #070809 76%);
border: 7px solid #000;
border-radius: 100%;
box-sizing: border-box;
height: 495px;
left: 50%;
margin-left: -247.5px;
position: absolute;
top: 0;
width: 495px;
-webkit-animation: spin 5s linear infinite;
animation: spin 5s linear infinite;
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
.player .top .record-wrapper .record.spin {
-webkit-animation-play-state: running;
animation-play-state: running;
}
.player .top .record-wrapper .record:bef.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0