css+js实现可放大缩小的音乐播放器效果代码

代码语言:html

所属分类:多媒体

代码描述:css+js实现可放大缩小的音乐播放器效果代码

代码标签: css js 放大 缩小 音乐 播放器

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

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<style>
* {
	border:none;
	margin:0;
	padding:0;
}
ul,ol {
	list-style:none;
}
a {
	text-decoration:none;
}
.audio {
	position:relative;
	margin:auto;
	top:50px;
	height:445px;
	width:300px;
	overflow:hidden;
	transition:all .5s;
	border-radius:20px;
	background:linear-gradient(rgba(144,54,124,0.5) 0,rgba(241,152,156,0.5) 445px);
}
.audio-off {
	height:50px;
	width:250px;
	border-radius:10px;
}
.audio-head {
	position:absolute;
	margin:auto;
	width:100%;
	height:50px;
}
.add {
	position:relative;
	width:80%;
	height:50px;
}
.min-time {
	position:absolute;
	width:0;
	opacity:1;
	height:4px;
	margin-top:-4px;
	background:rgba(244,234,255,0.4);
	transition:all .5s;
}
.min-time-off {
	width:0;
	opacity:0;
}
.audio-head-tittle {
	height:100%;
	line-height:50px;
	color:aquamarine;
	font-size:23px;
	font-weight:bold;
	font-family:微软雅黑;
	text-align:center;
	transition:all .5s;
}
.audio-head-tittle-text {
	width:90%;
	margin-left:5%;
	text-overflow:clip;
	word-break:keep-all;
	white-space:nowrap;
	overflow:hidden;
}
.audio-head-tittle-text-off {
	width:60%;
	margin-left:20%;
}
.audio-head-tittle-text-out {
	font-size:23px;
	display:none;
}
.audio-head-tittle-text-out-a {
	font-size:20px;
	display:none;
}
.audio-head-tittle-by {
	margin:auto;
	height:50%;
	line-height:50px;
	color:#de9fff;
	font-size:15px;
	font-weight:bold;
	font-family:微软雅黑;
	text-align:center;
	opacity:0;
	transition:all .5s;
}
.audio-head-tittle-by-off {
	opacity:1;
}
.audio-head-tittle-off {
	width:100%;
	height:50%;
	font-size:20px;
}
.audio-img {
	position:relative;
	width:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0