jquery+svg实现一个音乐app ui效果代码
代码语言:html
所属分类:布局界面
代码描述:jquery+svg实现一个音乐app ui效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <style> :root { --blue-bubble: #bbe6f3; --small-b-bubble: #bae5f2; --pink-bubble: #ebc7e5; --font-color: #063064; } * { box-sizing: border-box; } *:focus { outline: none; } html, body { width: 100%; height: 100%; overflow: hidden } body { background-color: #303030 } .container { background-color: #f3fcfd; width: 800px; height: 600px; margin: 60px auto; position: relative; overflow: hidden; border-radius: 6px; } .bubble { position: absolute; border-radius: 50%; } .pink-bubble { width: 460px; height: 460px; right: -160px; top: -110px; background-color: var(--pink-bubble); } .blue-bubble { width: 520px; height: 520px; left: -30px; top: 345px; background-color: var(--blue-bubble); } .small-b-bubble { width: 50px; height: 50px; right: 40px; bottom: 85px; background-color: var(--small-b-bubble); } .small-p-bubble { width: 105px; height: 105px; left: -45px; top: 140px; background-color: var(--pink-bubble); } .app-ui { background-color: #fff; width: 235px; height: 500px; position: absolute; left: 140px; top: 35px; border-radius: 30px; box-shadow: 2px 14px 40px -20px rgba(0, 0, 0, 0.2); } .left-ui { overflow: hidden; } .right-ui { left: 435px; top: 60px; box-shadow: -6px 14px 40px -20px rgba(0, 0, 0, 0.2); background-color: #bbe6f3; } .inside-right { left: 0; top: 70px; height: 430px; } .header { font-family: "Fjalla One", sans-serif; color: var(--font-color); display: flex; justify-content: space-between; align-items: center; width: 235px; padding: 27px 27px 21px 27px; font-size: 22px; } .menu-line { border: 1px solid var(--font-color); width: 25px; border-radius: 50px; } .menu-line:before { content: ""; position: absolute; top: 45px; left: 197px; border: 0.05em solid; width: 8px; border-radius: 50px; } .menu-line:after { content: ""; position: absolute; top: 45px; left: 190px; border: 0.05em solid; width: 3px; border-radius: 50px; } .left-menu-bar { position: relative; font-family: "Roboto", sans-serif; color: var(--font-color); left: -5px; } .ur-playlist { font-size: 11px; font-weight: 500; transform: rotate(270deg); position: absolute; left: 2px; top: 40px; cursor: pointer; } .playlist-icon { width: 11px; position: absolute; left: 28px; top: -6px; cursor: pointer; } .like-recent { position: absolute; top: 110px; } .recent { left: 18px; top: 90px; } .recent-detail { width: 4px; height: 4px; background-color: var(--font-color); position: absolute; top: 95px; left: 15px; border-radius: 50%; } .like { left: 25px; top: 140px; color: #aeb8cc; } .like:hover { color: var(--font-color); } .album-img { position: relative; background-image: url("//repo.bfw.wiki/bfwrepo/image/5e62ef20b92ee.png"); width: 130px; height: 165px; background-repeat: no-repeat; background-size: cover; border-radius: 20px; margin-left: 58px; box-shadow: -10px 10px 30px -20px rgba(0, 0, 0, 0.5); cursor: pointer; } .album-img:hover { transform: scale(1.02); } .relax { position: absolute; bottom: 15px; left: 20px; color: #fff; font-family: "Roboto", sans-serif; font-size: 15px; font-weight: 500; } .btn { background-color: #ffffff; position: absolute; width: 27px; height: 27px; right: 10px; bottom: 10px; border-radius: 9px; transition: all 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0px 1px 2px white, 0px 2px 1px rgba(0, 0, 0, 0.15); cursor: pointer; border: none; } .btn:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 15px; z-index: 2; } .btn:active { box-shadow: 0 5px 50px rgba(0, 0, 0, 0.02); } .btn:active:after { box-shadow: inset 0px 2px 3px white, inset 0px 2px 0px rgba(0, 0, 0, 0.1); } .btn.active.play-pause .icon.pause { opacity: 1; transform: translate(-50%, -50%); } .btn.active.play-pause .icon.play { opacity: 0; } .play { width: 13px; position: absolute; top: 7px; left: 8px; } .play svg { stroke-width: 5; } .pause { width: 12px; opacity: 0; position: absolute; left: 14px; top: 15px; } .flowers-img { background-image: url("//repo.bfw.wiki/bfwrepo/image/5e62ef20b92ee.png"); background-repeat: no-repeat; background-size: cover; height: 135px; width: 120px; position: absolute; right: -88px; top: 90px; border-radius: 20px; transform: rotate(180deg); box-shadow: -10px 10px 30px -20px rgba(0, 0, 0, 0.5); } .flowers-img:hover { cursor: pointer; -webkit-transform: rotate(180deg) scale(1.03); } .music-list { cursor: pointer; margin-left: 50px; margin-top: 20px; } .song { display: flex;.........完整代码请登录后点击上方下载按钮下载查看
网友评论0