js+css实现拖动音乐盘改变播放进度的音乐播放器效果代码
代码语言:html
所属分类:多媒体
代码描述:js+css实现拖动音乐盘改变播放进度的音乐播放器效果代码
代码标签: js css 拖动 光盘 改变 播放 进度 音乐 播放器
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Gentium+Basic:700|Gentium+Book+Basic:700|PT+Serif:700|Fira+Sans|Roboto&display=swap" rel="stylesheet">
<style>
html {
box-sizing: border-box;
}
html *,
html *::before,
html *::after {
box-sizing: inherit;
}
body {
background-color: #f0f0f0;
color: #2d2d2d;
margin: 0;
font-family: 'Fira Sans', sans-serif;
font-family: 'Roboto', sans-serif;
-webkit-tap-highlight-color: transparent;
overflow: hidden;
}
button {
background: none;
border: none;
outline: none;
font: inherit;
-webkit-appearance: none;
cursor: pointer;
}
.svg-icon {
width: 2em;
height: 2em;
fill: currentColor;
}
.app {
--app-gap: 3rem;
height: 100vh;
padding: 0 2rem;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--app-gap);
overflow-x: hidden;
}
@media (max-width: 600px) {
.app {
font-size: 12px;
}
}
.disk-container {
perspective: 600px;
}
#song {
display: none;
}
.disk {
display: flex;
align-items: center;
justify-content: center;
width: 18em;
height: 18em;
background-image: url("//repo.bfw.wiki/bfwrepo/icon/6286c7ad45af2.png");
background-size: contain;
border-radius: 50%;
cursor: pointer;
/* pointer-events: none; */
box-shadow: 0px 0px 30px 5px #5f5f5f5e;
transform: rotateX(60deg);
transition: transform 0.3s cubic-bez.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0