带光影动画的圆形mp3音乐播放器效果代码
代码语言:html
所属分类:多媒体
代码描述:带光影动画的圆形mp3音乐播放器效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html> <head> <meta charset="utf-8"> <style> @charset "utf-8"; @import url("https://s2.pstatp.com/cdn/expire-1-M/font-awesome/5.1.1/css/all.min.css"); * { box-sizing: border-box; } html { background: #000000; } html, body, .container { height: 100%; margin: 0; font-family: Arial, Helvetica, sans-serif; } .container { display: flex; align-items: center; justify-content: center; } .glow { position: absolute; width: 300px; height: 300px; background: linear-gradient(0deg, #000000, #262626); border-radius: 50%; } .glow::before, .glow::after { content: ""; position: absolute; top: -2px; left: -2px; background: linear-gradient( 45deg, #ff00ee, #0000ff, #00ff00, #ff0000, #ff00ee, #0000ff, #00ff00, #ffff00, #ff0000 ); background-size: 400%; max-width: calc(300px + 4px); max-height: calc(300px + 4px); width: calc(300px + 4px); height: calc(300px + 4px); z-index: -1; animation: animate 20s linear infinite; border-radius: 50%; } .disable-animation::before, .disable-animation::after { animation-play-state: paused; } .glow::after { filter: blur(28px); } #player, #playlist { width: 243px; height: 212px; text-align: center; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); } #songName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 30px; } .playlist-btn { width: 243px; margin-top: 30px; text-align: center; position: relative; left: 50%; transform: translateX(-50%); } .hide { display: none; } #list { height: 118px; max-height: 118px; margin-top: 16px; font-size: 12px; overflow-x: hidden; overflow-y: scroll; color: #fff; text-align: left; padding-left: 8p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0