vue+tone+chance实现音乐泡泡排序动画弹奏效果代码
代码语言:html
所属分类:多媒体
代码描述:vue+tone+chance实现音乐泡泡排序动画弹奏效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.15.3.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700|Permanent+Marker" rel="stylesheet">
<style>
html, body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
h1 {
margin: 0;
padding: 0;
}
button {
margin: 0;
padding: 0;
border: none;
background-color: transparent;
color: white;
cursor: pointer;
}
i.fa-redo-alt {
font-size: 1.5rem;
margin-left: 1rem;
}
.toast {
position: absolute;
top: 0;
right: 0;
width: 200px;
height: 50px;
background-color: green;
color: white;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
border-radius: 5px;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
min-height: 100vh;
align-content: flex-start;
background: #193073;
color: white;
}
.main {
margin-top: 2rem;
margin-bottom: 2rem;
display: flex;
flex-wrap: wrap;
font-family: 'IBM Plex Sans', sans-serif;
background: #22293c;
box-shadow: 8px 8px 10px 2px rgba(0, 0, 0, 0.3);
border-radius: 5px;
width: 700px;
padding: 2rem;
position: relative;
}
.title {
flex: 0 1 100%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 1rem;
margin-bottom: 3rem;
font-size: 1.5rem;
text-transform: uppercase;
}
.graph {
flex: 0 1 100%;
display: flex;
justify-content: center;
align-items: flex-end;
}
.graph__bars {
display: flex;
align-items: flex-end;
}
.graph__bar {
background-color: #193073;
color: white;
height: 20px;
width: 50px;
transition: transform .5s, opacity .1s;
margin-right: 10px;
display: flex;
justify-content: center;
align-items: flex-end;
opacity: .5;
position: relative;
}
.graph__bar.active {
opacity: 1;
}
.graph__bar.checking {
opacity: 1;
}
.graph__bar.complete {
background-color: green !important;
opacity: 1;
}
.graph__randomize {
color: red;
}
.graph__randomize button {
transition: opacity .1s;
}
.graph__randomize button:disabled {
opacity: 0.5;
cursor: initial;
}
.bass {
flex: 0 1 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 2rem;
}
.bass__title {
font-size: 1.3rem;
flex: 0 1 100%;
font-weight: bold;
text-align: center;
margin-bottom: 1rem;
}
.bass__notes {
display: flex;
flex: 0;
}
.bass__box {
width: 20px;
margin-left: 15px;
height: 20px;
background-color: #F21DE4;
opacity: .2;
cursor: pointer;
position: relative;
}
.bass__box.active {
opacity: .7;
}
.bass__box label {
width: 100%;
height: 100%;
position: absolute;
cursor: pointer;
}
.bass__box input {
display: none;
}
.bass__randomize {
margin-left: 10px;
}
.begin {
flex: 0 1 100%;
text-align: center;
margin-top: 2rem;
text-transform: uppercase;
}
.begin button {
background-color: #193073;
padding: 1rem 3rem;
border-radius: 2px;
font-weight: bold;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.info-heade.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0