svg+css+js实现玻璃磨砂中性音乐播放器代码
代码语言:html
所属分类:多媒体
代码描述:svg+css+js实现玻璃磨砂中性音乐播放器代码
代码标签: svg css js 玻璃 磨砂 中性 音乐 播放器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
padding: 0px;
margin: 0px;
}
body {
background: #000;
background-image: url("//repo.bfw.wiki/bfwrepo/image/66ecf0f6844e7.png");
background-position: center center;
background-size: cover;
height: 100vh;
width: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-family: "Oxygen", sans-serif;
}
.container {
width: calc(100% - 32px);
min-width: 320px;
max-width: 400px;
border-radius: 24px;
padding: 24px;
display: flex;
flex-direction: column;
align-items: center;
background: linear-gradient(to right top, #313131aa, #efefef55);
backdrop-filter: blur(12px);
border: 1px solid #f0f0f025;
overflow: hidden;
font-family: "Oxygen", sans-serif;
gap: 24px;
}
.container .header {
display: flex;
flex-direction: column;
gap: 4px;
align-items: center;
width: 100%;
}
.container .title {
font-size: 16px;
line-height: 16px;
letter-spacing: 0.4px;
}
.container .cantor {
font-size: 14px;
color: #ddd;
}
.container .view {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.container .view .duration,
.container .view .current-time {
min-width: 30px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.container .view input {
flex-grow: 1;
}
.input {
--input-width: 0%;
position: relative;
width: 100%;
height: 6px;
border-radius: 6px;
overflow-y: visible;
bottom: -1px;
}
input[type="range"] {
-webkit-appearance: none;
width: 100%;
background-color: #33333355;
height: 6px;
border-radius: 6px;
position: relative;
z-index: 10;
user-select: none;
pointer-events: none;
cursor: default;
position: absolute;
top: 50%;
transform: translatey(-50%)
}
.input::before {
content: "";
width: calc(var(--input-width));
background: white;
height: 6px;
display: block;
position: absolute;
top: calc(50%);
left: 0px;
transform: translateY(-50%);
z-index: 20;
border-radius: 6px;
transition: --input-width 0.1s ease-in-out;
}
.input::after {
content: "";
bac.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0