wavesurfer实现一款背景带音频频谱波动进度的音乐播放器代码
代码语言:html
所属分类:多媒体
代码描述:wavesurfer实现一款背景带音频频谱波动进度的音乐播放器代码
代码标签: wavesurfer 背景 音频 频谱 波动 进度 音乐 播放器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <script src="https://use.typekit.net/tqi0rfb.js"></script> <script>try{Typekit.load({ async: true });}catch(e){}</script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css"> <style> html { height: 100%; } body { background: #4f8ea5; background: radial-gradient(ellipse at center, #4f8ea5 0%, #343f53 50%, #1c1b26 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#4f8ea5", endColorstr="#1c1b26",GradientType=1 ); font-family: "proxima-nova"; } .clear:before, .time:before, .clear:after, .time:after { content: ""; display: table; } .clear:after, .time:after { clear: both; } @-webkit-keyframes opacityAni { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes opacityAni { 0% { opacity: 0; } 100% { opacity: 1; } } .phone { -webkit-animation: opacityAni 400ms linear 1s forwards; animation: opacityAni 400ms linear 1s forwards; background: #1e1e28; background: linear-gradient(to bottom, #1e1e28 0%, #1e2e47 34%, #31bdf7 88%, #e8fefe 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#1e1e28", endColorstr="#e8fefe",GradientType=0 ); border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); height: 500px; left: 50%; opacity: 0; overflow: hidden; position: absolute; transform: translate(-50%, -50%); top: 50%; width: 320px; } .wavesurfer { box-sizing: border-box; cursor: pointer; height: 275px; margin-bottom: 30px; overflow: hidden; padding-top: 60px; pointer-events: none; position: relative; width: 100%; z-index: 1; } .wavesurfer__elem { height: 500px; left: 0; opacity: 0; position: absolute; transition: opacity 170ms linear; top: 0; width: 100%; z-index: 0; } .wavesurfer__elem.show { opacity: 1; } .artist__image { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 0 10px rgba(255, 255, 255, 0.1), 0 0 5px 20px rgba(255, 255, 255, 0.05); border-radius: 50%; height: 140px; margin: 0 auto 34px auto; position: relative; transition: all 170ms ease-in; width: 140px; z-index: 2; } .artist__image.play { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0), 0 0 0 10px rgba(255, 255, 25.........完整代码请登录后点击上方下载按钮下载查看
网友评论0