jquery+bootstrap实现大气自适应黑色酷炫音乐播放器代码
代码语言:html
所属分类:多媒体
代码描述:jquery+bootstrap实现大气自适应黑色酷炫音乐播放器代码,带音量调节、快进快退等功能。
代码标签: jquery bootstrap 大气 黑色 酷炫 音乐 播放器 代码 自适应
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.5.2.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css">
<style>
@import url('//fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap');
html,
body {
height: 100%;
}
body {
background-color: #25272A;
font-family: 'Sen', sans-serif;
}
button:focus {
outline: 0;
}
audio {
display: none;
}
.row {
margin-left: 0px;
}
#player {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
position: relative;
min-height: 800px;
min-width: 400px;
background-color: #000000;
background: rgb(53,59,63);
background: linear-gradient(180deg, rgba(53,59,63,1) 0%, rgba(38,41,46,1) 50%, rgba(24,25,28,1) 100%);
border-radius: 50px;
box-sizing: border-box;
color: #FFF;
background-clip: padding-box;
border: solid 2px rgba(181, 181, 181, 0.03);
z-index: 0;
margin-top: 20px;
}
#player:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
margin: -2px;
border-radius: inherit;
border: 1px solid rgba(93, 93, 93, 0.1);
border-bottom-width: 0px;
background: linear-gradient(rgba(65, 70, 78, 0.85), rgba(32, 35, 39, 0.75));
-webkit-box-shadow: 0px 10px 50px -30px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 10px 50px -30px rgba(0,0,0,0.75);
box-shadow: 0px 10px 50px -30px rgba(0,0,0,0.75);
}
#top-row {
padding: 30px 20px;
}
#top-row button {
border-radius: 100%;
height: 55px;
width: 55px;
font-size: 1em;
color: #84878A;
background: rgb(29,31,35);
background: linear-gradient(315deg, rgba(29,31,35,1) 0%, rgba(46,53,58,1) 100%);
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
position: relative;
text-align: center;
box-sizing: border-box;
background-clip: padding-box;
border: solid 2px transparent;
z-index: 2;
}
#top-row button i {
margin: 0px auto;
box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.4)
}
#top-row button:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
margin: -2px;
border-radius: 100%;
background: rgb(29,31,35);
background: linear-gradient(315deg, rgba(120,120,120,0.0) 0%, rgba(46,53,58,1) 100%);
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2), -4px -4px 15px 0px rgba(154,154,154,0.3), 2px 2px 20px 0px rgba(25,25,25,0.6);
}
#top-row #left-button .dropdown-menu {
border-width: 0px;
width: calc(55px/2);
padding: 0px;
margin: 0px auto;
min-width: auto;
text-align: center;
margin-top: -5px;
left: calc(55px/4);
z-index: 1;
background: transparent;
-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
}
#top-row .dropdown-menu input[type=range]::-webkit-slider-runnable-track {
background: linear-gradient(90deg, rgba(218,80,25,1) 0%, rgba(184,160,34,1) 50%, #1D2021 50%, #1D2021 100%);
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2), 2px -2px 10px 0px rgba(25,25,25,0.6);
}
#volume-bar {
height: 100px;
width: 100px;
transform: rotate(270deg) translateY(-24px);
transform-origin: center;
z-index: 3;
}
#player-title {
font-size: 1.1em;
padding-top: 0.85em;
color: #84878A;
font-weight: 500;
text-transform: uppercase;
}
#top-row #right-button .dropdown-menu {
border-width: 0px;
width: auto;
padding: 0px;
margin: 0px auto;
width: auto;
text-align: center;
margin-top: -5px;
z-index: 1;
/* background: transparent;*/
-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
box-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
}
.album-border {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
position: relative;
text-align: center;
box-sizing: border-box;
background-clip: padding-box;
border: solid 8px transparent;
}
.album-back {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
position: relative;
text-align: center;
box-sizing: border-box;
background-clip: padding-box;
border: solid 8px transparent;
}
.album-border img {
border-radius: 100%;
max-height: 300px;
margin: 0px auto;
}
.album-shadow:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
border-radius: 100%;
z-index: 2;
width: 100%;
height: 100%;
opacity: 0.1;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 8%, rgba(255,255,255,0) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(8%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0)));
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,r.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0