js+css实现逼真拟物声音均衡器滑竿拖动调节数值效果代码
代码语言:html
所属分类:拖放
代码描述:js+css实现逼真拟物声音均衡器滑竿拖动调节数值效果代码
代码标签: js css 逼真 拟物 声音 均衡器 滑竿 拖动 调节 数值
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @font-face { font-family: "Alarm Clock"; src: url("//repo.bfw.wiki/bfwrepo/font/Alarm-Clock.ttf") format("truetype"); } :root { --sz: 1vmin; --lg: 200 250 250; --eqz1: 0; --eqz2: 50; --eqz3: 99; } *, *:before, *:after { box-sizing: border-box; transition: all 0s ease 0s; } body { margin: 0; padding: 0; width: 100vw; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3a3d44, #3b3e45, #383b42); } body:before, body:after { content: ""; position: absolute; width: 100%; height: 100%; background: repeating-conic-gradient(#0002 0.000095%, #fff0 .0005%, #fff0 .005%, #fff0 .0005%), repeating-conic-gradient(#0002 0.00001%, #fff0 .00009%, #fff0 .00075%, #fff0 .000025%); opacity: 0.75; filter: blur(0.75px); z-index: -1; } .content { position: relative; width: calc(var(--sz) * 50); height: calc(var(--sz) * 40); display: flex; align-items: center; justify-content: center; } .eq { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; } .eq:before, .eq:after { content: ""; width: calc(var(--sz) * 1.25); height: 70%; background: #272729; box-shadow: 0 0 calc(var(--sz) * 0.5) 0 #000 inset; border-radius: calc(var(--sz) * 0.25); position: absolute; z-index: -2; } .eq:after { height: 70%; box-shadow: 0 0 calc(var(--sz) * 0.5) 0 rgb(var(--lg)) inset, -1px -1px 2px 0 #0008, 1px 1px 2px 0 #fff3; z-index: -1; bottom: calc(var(--sz) * 6); } .eq:nth-child(1) { --lg: 200 250 250; } .eq:nth-child(2) { --lg: 120 200 220; } .eq:nth-child(3) { --lg: 200 250 200; } .eq:nth-child(1):after { max-height: calc(calc(var(--eqz1) * 70 / 100 ) * 1%); } .eq:nth-child(2):after { max-height: calc(calc(var(--eqz2) * 70 / 100 ) * 1%); } .eq:nth-child(3):after { max-height: calc(calc(var(--eqz3) * 70 / 100 ) * 1%); } /* Range Styles */ input[type='range'] { transform: rotate(-90deg); transform-origin: center; width: 65%; height:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0