html好看的音乐播放器
文章目录1.主界面列表效果2.主界面详情效果3.背景风格1-背景色轮动4.背景风格2-图片轮动5.MP3免费下载5.1 MyFreeMP35.2.铜钟音乐源码下载文章目录
1.主界面列表效果
音乐播放列表,里面目前几首歌曲,到时候可以自己下载喜欢听的歌曲到里面,下面带有免费下载歌曲地址。
<ul class="player__playlist list"><li class="player__song"><img class="player__img img" src="img/1.jpg" alt="cover"><p class="player__context"><b class="player__song-name">周杰伦</b><span class="flex"><span class="player__title">听妈妈的话</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/1.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/2.jpg" alt="cover"><p class="player__context"><b class="player__song-name">薛之谦</b><span class="flex"><span class="player__title">认真的雪</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/2.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/3.jpg" alt="cover"><p class="player__context"><b class="player__song-name">艾辰</b><span class="flex"><span class="player__title">错位时空</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/3.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/4.jpg" alt="cover"><p class="player__context"><b class="player__song-name">陈明</b><span class="flex"><span class="player__title">我要找到你</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/4.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/5.jpg" alt="cover"><p class="player__context"><b class="player__song-name">周深</b><span class="flex"><span class="player__title">雪落下的声音</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/5.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/6.jpg" alt="cover"><p class="player__context"><b class="player__song-name">王力宏,谭维维</b><span class="flex"><span class="player__title">缘分一道桥 (电影《长城》片尾曲)</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/6.mp3"></audio></li><li class="player__song"><img class="player__img img" src="img/7.jpg" alt="cover"><p class="player__context"><b class="player__song-name">周深</b><span class="flex"><span class="player__title">大鱼 (动漫《大鱼海棠》印象曲)</span><span class="player__song-time"></span></span></p><audio class="audio" src="img/7.mp3"></audio></li></ul>
2.主界面详情效果
封面 + 歌曲名称 + 歌唱者
3.背景风格1-背景色轮动
每次切换歌曲的时候,背景颜色变换
--1.这个是配置背景图片地方,去掉后就是背景色切换<body style="background-image:url('img/bg.jpg'); background-repeat:no-repeat;background-position:center;background-size:cover;">--2.配置图片变换const bgBody = ["orange", "#ff4545", "#f8ded3", "#ffc382", "#f5eda6", "#ffcbdc", "#dcf3f3"];//切换背景颜色body.style.backgroundColor = bgBody[count];
4.背景风格2-图片轮动
每次切换歌曲的时候,背景图片变换
--1.这个是配置背景图片地方,加上后就是背景图片变换<body style="background-image:url('img/bg.jpg'); background-repeat:no-repeat;background-position:center;background-size:cover;">--2.配置图片变换const bgBodyImg = ["bg1.jpg", "bg2.jpg", "bg3.jpg", "bg4.jpg", "bg5.jpg", "bg6.jpg", "bg7.jpg"];//切换背景图片body.style.backgroundImage = "url('img/"+bgBodyImg[count]+"')";
5.MP3免费下载
5.1 MyFreeMP3
歌曲下载地址:/music/
无损音乐及付费音乐免费下载,提供包含精选、歌单、排行榜等多种音乐推荐形式,可以在榜单中寻找喜欢的音乐,也可以直接搜索自己喜欢的音乐。
5.2.铜钟音乐
歌曲下载地址:/
非常棒的在线音乐聚合搜索网站。当一个平台的音乐无法满足你时,总是要多个平台切换听歌,一个音乐聚合平台,满足你的音乐需求。
源码下载
【博主推荐】html好看的音乐播放器 点击下载
如果觉得《【博主推荐】html好看的音乐播放器(附源码)》对你有帮助,请点赞、收藏,并留下你的观点哦!