中性音乐播放器UI特效

  • O1_525414
    了解作者
  • 3.6KB
    文件大小
  • 文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-07 13:20
    上传日期
html5基于svg制作简易中性风格的在线mp3音乐播放器特效。带进度条播放,支持喜欢点赞,暂停/开始播放功能。音乐接口位于JS文件中
player.rar
  • player
  • js
  • script.js
    1.9KB
  • css
  • style.css
    3.2KB
  • index.html
    4.2KB
内容介绍
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>CodePen - Neumorphic Music Player</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class="music-wrapper"> <div class="player"> <div class="song-heading"> <div class="title">No Tears left to cry</div> <div class="album-name">Ariana Grande</div> </div> <div class="music-controls"> <div class="repeat"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="1" id="_1"> <path d="M102.59,341.42a15,15,0,0,1-13.42-8.28,187.41,187.41,0,0,1,35.11-216.86c73.18-73.19,192.26-73.19,265.44,0a15,15,0,0,1-21.21,21.21C307,76,207,76,145.49,137.49A157.45,157.45,0,0,0,116,319.69a15,15,0,0,1-13.4,21.73Z"/> <path d="M257,436.61a187.1,187.1,0,0,1-132.72-54.88,15,15,0,1,1,21.21-21.22C207,422,307,422,368.51,360.51A157.45,157.45,0,0,0,398,178.31a15,15,0,0,1,26.82-13.45A187.62,187.62,0,0,1,257,436.61Z"/> <path d="M315.21,148.25a15,15,0,0,1-1.47-29.92l47.43-4.73-9.51-47.67a15,15,0,0,1,29.42-5.86L393.82,124a15,15,0,0,1-13.22,17.86l-63.88,6.37C316.21,148.23,315.71,148.25,315.21,148.25Z"/> <path d="M147.61,450a15,15,0,0,1-14.7-12.07l-12.74-63.88a15,15,0,0,1,13.23-17.86l63.88-6.37a15,15,0,0,1,3,29.85l-47.43,4.73,9.5,47.67A15,15,0,0,1,147.61,450Z"/></g> </svg></div> <div class="previous"> <svg xmlns="http://www.w3.org/2000/svg" width="38" height="36" viewBox="0 0 38 36"> <g> <path class="a" d="M33,.68l-18.51,15a3,3,0,0,0,0,4.74L33,35.32A3,3,0,0,0,38,33V3.05A3,3,0,0,0,33,.68Z"/> <rect class="a" width="10" height="36" rx="3" ry="3"/> </g> </svg> </div> <div class="play"> <svg class="play-btn" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path d="M405.2,232.9L126.8,67.2c-3.4-2-6.9-3.2-10.9-3.2c-10.9,0-19.8,9-19.8,20H96v344h0.1c0,11,8.9,20,19.8,20 c4.1,0,7.5-1.4,11.2-3.4l278.1-165.5c6.6-5.5,10.8-13.8,10.8-23.1C416,246.7,411.8,238.5,405.2,232.9z"/> </svg> <svg class="pause-btn hide" height="20px" version="1.1" viewBox="0 0 20 20" width="20px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g fill="#000000" id="Icons-AV" transform="translate(-42.000000, -85.000000)"><g id="pause-circle-outline" transform="translate(42.000000, 85.000000)"><path d="M7,14 L9,14 L9,6 L7,6 L7,14 L7,14 Z M10,0 C4.5,0 0,4.5 0,10 C0,15.5 4.5,20 10,20 C15.5,20 20,15.5 20,10 C20,4.5 15.5,0 10,0 L10,0 Z M10,18 C5.6,18 2,14.4 2,10 C2,5.6 5.6,2 10,2 C14.4,2 18,5.6 18,10 C18,14.4 14.4,18 10,18 L10,18 Z M11,14 L13,14 L13,6 L11,6 L11,14 L11,14 Z" id="Shape"/></g></g></g></svg> </div> <div class="next"> <svg xmlns="http://www.w3.org/2000/svg" width="38" height="36" viewBox="0 0 38 36"> <title>17 Next</title> <g> <path class="a" d="M5,35.32,23.47,20.37a3,3,0,0,0,0-4.74L5,.68A3,3,0,0,0,0,3.05V33A3,3,0,0,0,5,35.32Z"/> <rect class="a" x="28" width="10" height="36" rx="3" ry="3"/> </g> </svg> </div> <div class="favorite"> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="24" width="24" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <g transform="translate(0 -1028.4)"> <path d="m7 1031.4c-1.5355 0-3.0784 0.5-4.25 1.7-2.3431 2.4-2.2788 6.1 0 8.5l9.25 9.8 9.25-9.8c2.279-2.4 2.343-6.1 0-8.5-2.343-2.3-6.157-2.3-8.5 0l-0.75 0.8-0.75-0.8c-1.172-1.2-2.7145-1.7-4.25-1.7z" fill="#5C87FE"/> </g> </svg> </div> </div> <div class="audio-control"> <div class="audio-progress"></div> </div> <div class="audio-duration"> <div class="start">00:01</div> <div class="end">04:30</div> </div> <div class="edge"></div> </div> </div> <audio id="song" src="" rel='nofollow' onclick='return false;'></audio> <script src="js/script.js"></script> </body> </html>
评论
    相关推荐
    • HTML5
      HTML5
    • html5
      html5
    • HTML5 Canvas
      HTML5 Canvas
    • html5ppryt
      html5ppryt
    • html5
      html5
    • html5
      html5
    • HTML5播放器
      一款HTML5的播放器、兼容多种浏览器、IE 、 谷歌 、火狐等
    • html5media
      flowplayer相关插件,附带了使浏览器兼容html5的插件。解决浏览器不兼容html5的问题
    • html5
      html5
    • HTML5 Canvas
      HTML5 Canvas 经典学习教程, HTML5 Canvas 经典学习教程-HTML5 Canvas Study,HTML5 Canvas Study,HTML5 Canvas Study