react实现一个音序器Sequencer代码
代码语言:html
所属分类:其他
代码描述:react实现一个音序器Sequencer代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
background: #1e1e21;
}
.flex {
display: flex;
flex-direction: row;
}
.Sequencer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -55%);
padding: 1em;
background: #28282c;
border-radius: 4px;
}
.notes {
list-style-type: none;
position: absolute;
left: -100px;
top: 75px;
text-align: right;
color: white;
line-height: 60px;
opacity: 0.3;
}
.buttons {
display: flex;
padding: 0.35em 0 0.5em;
}
.buttons button, .buttons select {
margin: 5px;
outline: none;
background: #36363c;
color: white;
padding: 1em;
font-size: 12px;
letter-spacing: 1px;
border-radius: 4px;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
cursor: pointer;
border: 2px solid transparent;
}
.buttons button.active, .buttons select.active {
color: #0087ff;
border: 2px solid #0087ff;
}
.buttons .select-wrapper {
position: relative;
}
.buttons .select-wrapper span {
position: absolute;
color: white;
top: -10px;
left: 8px;
font-size: 9px;
letter-spacing: 1px;
opacity: 0.3;
}
.buttons select {
position: relative;
height: 42px;
min-width: 50px;
}
.pads {
box-sizing: border-radius;
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap;
}
.pads .pad {
background: #36363c;
border-radius: 4px;
cursor: pointer;
width: calc(600px / 10 - 10px);
height: calc(600px / 10 - 10px);
margin: 5px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
transition: background 100ms ease;
}
.pads .pad:hover {
background: #42424a;
}
.pads .pad.active {
background: #42424a;
}
.pads .pad.on {
background: #0087ff !.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0