css+js实现圆圈圆环琴弦波动弹奏声音动画效果代码
代码语言:html
所属分类:动画
代码描述:css+js实现圆圈圆环琴弦波动弹奏声音动画效果代码,点击任意地方波动琴弦。
代码标签: css js 圆圈 圆环 琴弦 波动 弹奏 声音 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"> <style> html, body { height: 100vh; background-color: black; overflow: hidden; font-family: "Noto Sans", sans-serif; } * { box-sizing: border-box; margin: 0; padding: 0; } canvas { height: 100vh; width: 100vw; position: relative; z-index: 9; } #logo { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; opacity: 0.08; white-space: nowrap; pointer-events: none; } #logo > img { height: 3.2vmin; } #background-image, #background-filter { height: 100%; width: 100%; position: fixed; top: 0px; left: 0px; } #background-image { z-index: 1; background-image: url("//repo.bfw.wiki/bfwrepo/image/6462b7138ecf4.png"); background-size: cover; background-position: center; opacity: 0.6; filter: blur(4px) grayscale(30%); } #background-filter { z-index: 2; background: radial-gradient(rgb(0 0 0 / 60%) 50%, transparent); } #control-bar-wrapper { width: 100%; display: flex; justify-content: center; position: fixed; top: 0px; left: 0px; z-index: 10; padding: 0.5rem; } .toggle { background-color: rgb(255 255 255 / 10%); backdrop-filter: blur(5px); padding: 0.5rem; bord.........完整代码请登录后点击上方下载按钮下载查看
网友评论0