div+css布局实现酷炫带列表的音乐播放器ui交互效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现酷炫带列表的音乐播放器ui交互效果代码
代码标签: div css 布局 酷炫 列表 音乐 播放器 ui 交互
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css">
<style>
@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");
:root {
font-family: "DM-sans", sans-serif;
}
* {
box-sizing: border-box;
outline: none;
}
html, body {
width: 100%;
height: 100vh;
margin: 0;
}
body {
background-color: #181a20;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
button {
background: transparent;
border: none;
cursor: pointer;
padding: 0;
outline: none;
}
img {
width: 100%;
height: 100%;
}
.music-app {
position: relative;
background-color: #1f2128;
width: 320px;
height: 620px;
border-radius: 30px;
box-shadow: 0px 0px 2px 0px rgba(40, 42, 53, 0.28);
overflow: hidden;
display: flex;
flex-direction: column;
}
@media screen and (max-width: 420px) {
.music-app {
width: 100%;
height: 100%;
border-radius: 0;
}
}
.cover {
position: relative;
width: 100%;
height: 160px;
background-image: url("//repo.bfw.wiki/bfwrepo/image/5ef9ef9fbf5b0.png");
background-size: cover;
background-position: center -40px;
padding-top: 70px;
background-repeat: no-repeat;
}
.artist {
position: absolute;
left: 50%;
transform: translate(-50%, 50%);
bottom: 0;
width: 80px;
height: 80px;
border-radius: 50%;
background-image: url("//repo.bfw.wiki/bfwrepo/image/600d6cfee7691.png");
background-size: cover;
border: 10px solid #1f2128;
}
.cover-title {
color: #fff;
text-align: center;
}
.cover-title p {
margin: 0;
}
.title {
font-size: 24px;
line-height: 32px;
}
.sub-title {
font-size: 14px;
line-height: 16px;
}
.btn {
color: #fff;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.btn-search {
position: absolute;
right: 20px;
top: 20px;
background-color: #1f2128;
padding: 8px 10px;
border-radius: 10px;
color: #fff;
transition: all 0.2s ease-in;
}
.btn-search:hover {
background-color: #2c2f39;
}
.btn-all {
color: #6343e4;
margin-left: auto;
font-size: 12px;
font-weight: 500;
transition: color 0.2s ease-in;
}
.btn-all:hover {
color: #8870ea;
}
.btn-add {
color: #fff;
margin-left: auto;
}
.btn-next {
color: #fff;
}
.btn-back {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23424665' stroke='%23424665' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='feather feather-skip-back'%3E%3Cdefs/%3E%3Cpath d='M19 20L9 12l10-8v16zM5 19V5'/%3E%3C/svg%3E");
}
.btn-repeat {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='feather feather-repeat' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs/%3E%3Cpath d='M17 1l4 4-4 4'/%3E%3Cpath d='M3 11V9a4 4 0 014-4h14M7 23l-4-4 4-4'/%3E%3Cpath d='M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");
}
.btn-rewind, .btn-rewind-next {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23424665' stroke='%23424665' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='feather feather-rewind'%3E%3Cdefs/%3E%3Cpath d='M11 19l-9-7 9-7v14zM22 19l-9-7 9-7.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0