css布局简洁大气手机音乐播放器效果代码

代码语言:html

所属分类:多媒体

代码描述:css布局简洁大气手机音乐播放器效果代码

代码标签: css 简洁 大气 手机 音乐 播放器

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">

    <style>
        body {
	background:radial-gradient(#A2A09D,#302E2D)
}
.screen {
	position:relative;
	width:290px;
	height:510px;
	background:#a0a0a0;
	border-radius:4px;
	background-image:url(https://s24.postimg.org/8r0kzlfjp/rsz_piano2.jpg)
}
.phone {
	position:fixed;
	width:290px;
	height:21px;
	position:absolute;
	z-index:9999;
	background:left center repeat-x scroll
}
.phone ul {
	list-style-type:none;
	margin:4px 5px 0 5px;
	padding:0;
	overflow:hidden;
	font-family:Arial;
	font-size:10px
}
.phone li {
	float:left;
	padding:1px
}
.left-nav {
	height:440px;
	width:140px;
	overflow: hidden;
	position:fixed;
	left:0;
	background-color:#DB3B53;
	overflow-x:hidden;
	transition:.5s;
	padding-top:70px;
	position:absolute;
	-webkit-box-shadow:inset 6px 0 30px -7px rgba(0,0,0,0.75),inset -6px 0 30px -7px rgba(0,0,0,0.75);
	-moz-box-shadow:inset 6px 0 30px -7px rgba(0,0,0,0.75),inset -6px 0 30px -7px rgba(0,0,0,0.75);
	box-shadow:inset 6px 0 30px -7px rgba(0,0,0,0.75),inset -6px 0 30px -7px rgba(0,0,0,0.75)
}
.left-nav a {
	padding:8px 8px 8px 5px;
	text-decoration:none;
	font-size:20px;
	color:#818181;
	display:block;
	transition:.3s
}
.left-nav a:hover,.offcanvas a:focus {
	color:#f1f1f1
}
.left-nav .closebtn {
	position:absolute;
	top:12px;
	right:17px;
	font-size:36px;
	margin-left:20px;
	color:#fff
}
#main {
	transition:margin-left .5s;
	padding:28px 0 0 18px
}
.left-nav p {
	font-family:arial;
	font-size:8px;
	text-transform:uppercase;
	letter-spacing:2px;
	margin-top:2px
}
.record {
	padding:22px 35px 0 0
}
img {
	-webkit-transition:all .0s;
	-moz-transition:all .0s;
	-o-transition:all .0s;
	transition:all .0s
}
img:hover {
	-webkit-transform:rotate(2520deg);
	-moz-transform:rotate(2520deg);
	transform:rotate(2520deg);
	-webkit-transition:all 33s ease;
	-moz-transition:all 33s ease;
	-o-transition:all 33s ease;
	transition:all 33s ease
}
.functions ul {
	list-style-type:none;
	margin:4px 5px 0 0;
	padding:0;
	overflow:hidden;
	font-family:Arial
}
.functions li {
	padding:1px
}
p.song {
	font-family:arial;
	font-size:15px;
	color:#fff;
	margin-top:10px;
	letter-spacing:1px;
	text-transform:uppercase
}
.functions a {
	color:#fff;
	text-decoration:none;
	background:transparent
}
p.artist {
	font-family:arial;
	font-size:9px;
	color:#CCC;
	margin-top:-15px;
	text-transform:uppercase;
	letter-spacing:1px
}
.controls ul {
	list-style-type:none;
	margin:4px 38px 0 38px;
	padding:0;
	overflow:hidden;
	font-family:Arial;
	font-size:20px
}
.controls li {
	float:left;
	padding:1px
}
.controls li a {
	color:#fff
}
.controls li a.pause {
	color:#DB3B53
}
.bar {
	width:205px;
	height:4px;
	overflow:hidden;
	border-radius:50px;
	margin:22px 0 0 0;
	background:rgba(0,0,0,0.75)
}
.seeker {
	float:left;
	width:80px;
	height:7px;
	border:10px solid #DB3B53
}
a[href="#seek"] {
	display:block;
	width:13px;
	height:13px;
	margin:-9px 0 0 0;
	background:#DB3B53;
	border-radius:100%;
	transition:none
}
.current {
	font-family:arial;
	color:#fff;
	float:left;
	margin:-13px 0 0 12px;
	font-size:12px
}
.duration {
	font-family:arial;
	color:#fff;
	float:right;
	margin:-13px 12px 0 0;
	font-size:12px
}
.credits {
	font-size:8px;
	text-align:right;
	width:290px;
	font-family:arial;
	text-transform:uppercase;
	letter-spacing:3px;
	color:#bdbdbd
}
    </style>

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
</head>

<body>

    <center>
        <div class="screen">
            <div class="phone">
                <ul>
                    <li style="color:#fff;"><span class="fa fa-circle" aria-hidden="true"></span></li>
                    <li style="color:#fff;"><span class="fa fa-circle" aria-hidden="true"></span></li>
                    <li style="color:#fff;"><span class="fa fa-circle-thin" aria-hidden="true"></span></li>
                    <li style="color:#fff;"><span class="fa fa-circle-thin" aria-hidden="true"></span></li>
                    <li style="color:#fff;"><span class="fa fa-circle-thin" aria-hidden="true"></span></li>
                    <li style="padding-left:4px;color:#fff;"><span class="fa fa-wifi" aria-hidden="true"></span></li>
                    <li style="margin-left:46px;color: #fff;">9:30 PM</li>
                    <li style="float:right;color: #fff;">70% <span class="fa fa-battery-3" aria-hidden="true"></span></li>
                </ul>
            </div>
            <!--SideNav-->
            <div id="mySidenav" class="left-nav"><a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
                <div class="navoptions"><a href="#" style="color:#fff;margin:0 0 5px 0;"><span class="fa fa-music" aria-hidden="true"></span><p>music</p></a><.........完整代码请登录后点击上方下载按钮下载查看

网友评论0