vue实现一个盘式音乐播放器ui效果代码
代码语言:html
所属分类:布局界面
代码描述:vue实现一个盘式音乐播放器ui效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Muli:400,700,900"); #yt-player { background-color: #000; position: absolute; opacity: 0; } @-webkit-keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } body, html { background-color: #A7C1DD; height: 100%; position: relative; z-index: -1; } .wrapper { display: grid; grid-template-rows: 1fr auto; height: 100%; margin: 0 auto; position: relative; width: 578px; } .wrapper .cp { text-align: center; margin-bottom: 10px; } .wrapper .cp a { color: #82a7cf; } .player { align-self: center; background: linear-gradient(168.53deg, #4b75a0 -45.66%, #3b5c7d 84.26%); border-radius: 10px; box-shadow: 0px 8px 4px rgba(0, 0, 0, 0.2); display: grid; grid-template-rows: 315px 90px 7px; height: 405px; margin: 130px auto 0; position: relative; width: 578px; } .player:before { content: ""; background: #335a85; border-radius: 10px; bottom: -30px; filter: blur(90px); height: 370px; left: 20px; position: absolute; right: 20px; z-index: -1; } .player .top { position: relative; } .player .top .artist { color: #fff; font-family: Muli; left: 0; position: absolute; text-transform: uppercase; top: -100px; z-index: 1; } .player .top .artist .name { color: rgba(255, 255, 255, 0.3); font-size: 17px; letter-spacing: 4px; line-height: 20px; position: relative; } .player .top .artist .name:after { background: #fff; content: ""; height: 2px; left: -30px; position: absolute; top: 8px; width: 20px; } .player .top .artist .title { font-size: 60px; font-weight: 700; line-height: 73px; } .player .top .time { color: #fff; font-family: Muli; font-size: 90px; position: absolute; right: 0; top: -148px; } .player .top .time .complete { color: rgba(255, 255, 255, 0.3); margin: 0 0 0 -40px; } .player .top .time .current { font-weight: 700; margin: -70px 0 0 0; } .player .top .record-wrapper { height: 425px; overflow: hidden; transform: translateY(-70px); } .player .top .record-wrapper .record { background-image: linear-gradient(130deg, #070809 24%, #070809 35%, #676767 49%, #070809 64%, #070809 76%); border: 7px solid #000; border-radius: 100%; box-sizing: border-box; height: 495px; left: 50%; margin-left: -247.5px; position: absolute; top: 0; width: 495px; -webkit-animation: spin 5s linear infinite; animation: spin 5s linear infinite; -webkit-animation-play-state: paused; animation-play-state: paused; } .player .top .record-wrapper .record.spin { -webkit-animation-play-state: running; animation-play-state: running; } .player .top .record-wrapper .record:before { background-color: #000; border-radius: 100%; content: ""; height: 10px; left: 50%; margin-left: -5px; margin-top: -5px; opacity: 1; position: absolute; top: 50%; width: 10px; z-index: 1; } .player .top .record-wrapper .record:after { content: ""; border-radius: 100%; box-shadow: 0 0 0 1px #111, 0px 0px 0px 2px #111, 0px 0px 0px 3px #111, 0px 0px 0px 4px #111, 0px 0px 0px 5px #222, 0px 0px 0px 6px #111, 0px 0px 0px 7px #111, 0px 0px 0px 8px #111, 0px 0px 0px 9px #111, 0px 0px 0px 10px #222, 0px 0px 0px 11px #111, 0px 0px 0px 12px #111, 0px 0px 0px 13px #111, 0px 0px 0px 14px #111, 0px 0px 0px 15px #222, 0px 0px 0px 16px #111, 0px 0px 0px 17px #111, 0px 0px 0px 18px #111, 0px 0px 0px 19px #111, 0px 0px 0px 20px #222, 0px 0px 0px 21px #111, 0px 0px 0px 22px #111, 0px 0px 0px 23px #111, 0px 0px 0px 24px #111, 0px 0px 0px 25px #222, 0px 0px 0px 26px #111, 0px 0px 0px 27px #111, 0px 0px 0px 28px #111, 0px 0px 0px 29px #111, 0px 0px 0px 30px #222, 0px 0px 0px 31px #111, 0px 0px 0px 32px #111, 0px 0px 0px 33px #111, 0px 0px 0px 34px #111, 0px 0px 0px 35px #222, 0px 0px 0px 36px #111, 0px 0px 0px 37px #111, 0px 0px 0px 38px #111, 0px 0px 0px 39px #111, 0px 0px 0px 40px #222, 0px 0px 0px 41px #111, 0px 0px 0px 42px #111, 0px 0px 0px 43px #111, 0px 0px 0px 44px #111, 0px 0px 0px 45px #222, 0px 0px 0px 46px #111, 0px 0px 0px 47px #111, 0px 0px 0px 48px #111, 0px 0px 0px 49px #111, 0px 0px 0px 50px #222, 0px 0px 0px 51px #111, 0px 0px 0px 52px #111, 0px 0px 0px 53px #111, 0px 0px 0px 54px #111, 0px 0px 0px 55px #222, 0px 0px 0px 56px #111, 0px 0px 0px 57px #111, 0px 0px 0px 58px #111, 0px 0px 0px 59px #111, 0px 0px 0px 60px #222, 0px 0px 0px 61px #111, 0px 0px 0px 62px #111, 0px 0px 0px 63px #111, 0px 0px 0px 64px #111, 0px 0px 0px 65px #222, 0px 0px 0px 66px #111, 0px 0px 0px 67px #111, 0px 0px 0px 68px #111, 0px 0px 0px 69px #111, 0px 0px 0px 70px #222, 0px 0px 0px 71px #111, 0px 0px 0px 72px #111, 0px 0px 0px 73px #111, 0px 0px 0px 74px #111, 0px 0px 0px 75px #222, 0px 0px 0px 76px #111, 0px 0px 0px 77px #111, 0px 0px 0px 78px #111, 0px 0px 0px 79px #111, 0px 0px 0px 80px #222, 0px 0px 0px 81px #111, 0px 0px 0px 82px #111, 0px 0px 0px 83px #111, 0px 0px 0px 84px #111, 0px 0px 0px 85px #222, 0px 0px 0px 86px #111, 0px 0px 0px 87px #111, 0px 0px 0px 88px #111, 0px 0px 0px 89px #111, 0px 0px 0px 90px #222, 0px 0px 0px 91px #111, 0px 0px 0px 92px #111, 0px 0px 0px 93px #111, 0px 0px 0px 94px #111, 0px 0px 0px 95px #222, 0px 0px 0px 96px #111, 0px 0px 0px 97px #111, 0px 0px 0px 98px #111, 0px 0px 0px 99px #111, 0px 0px 0px 100px #222, 0px 0px 0px 101px #111, 0px 0px 0px 102px #111, 0px 0px 0px 103px #111, 0px 0px 0px 104px #111, 0px 0px 0px 105px #222, 0px 0px 0px 106px #111, 0px 0px 0px 107px #111, 0px 0px 0px 108px #111, 0px 0px 0px 109px #111, 0px 0px 0px 110px #222, 0px 0px 0px 111px #111, 0px 0px 0px 112px #111, 0px 0px 0px 113px #111, 0px 0px 0px 114px #111, 0px 0px 0px 115px #222, 0px 0px 0px 116px #111, 0px 0px 0px 117px #111, 0p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0