div+css+js实现炫酷音乐盒播放器代码

代码语言:html

所属分类:多媒体

代码描述:div+css+js实现炫酷音乐盒播放器代码

代码标签: div css js 炫酷 音乐盒 播放器 代码

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

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

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

  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Alkatra&display=swap");
/* --------------------------- Colors ------------------------- */
/* ---------------------- Width & Heights --------------------- */
/* --------------------------- Mixins -------------------------- */
/* ------------------------ Reset CSS ----------------------- */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 200, "opsz" 48;
  font-size: 30px;
  color: #0066b2;
}

.player-controls__play .material-symbols-rounded {
  font-size: 40px;
}

/* --------------------------- CSS -------------------------- */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  height: 500px;
  border: 1px solid #0066b2;
  border-radius: 150px;
  background: radial-gradient(circle at 18.7% 37.8%, #fafafa 0%, #bce5f7 90%);
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.2);
}

.song {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: "Alkatra", cursive;
}
.song__title {
  font-size: 26px;
  color: #0066b2;
  letter-spacing: 1px;
  line-height: 1.2;
}
.song__artist {
  font-size: 16px;
  color: #28282b;
}

.song-duration {
  display: flex;
  gap: 2px;
  font-family: "Alkatra", cursive;
  font-size: 12px;
  color: #71797e;
}
.song-duration__lapsed, .song-duration__total {
  display: inline-block;
}

.disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0px, white 10px, .........完整代码请登录后点击上方下载按钮下载查看

网友评论0