css实现音乐专辑封面图文卡片悬浮光效代码

代码语言:html

所属分类:悬停

代码描述:css实现音乐专辑封面图文卡片悬浮光效代码

代码标签: css 音乐 专辑 封面 图文 卡片 悬浮 光效 代码

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

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

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

  
  
<style>
html {
  box-sizing: border-box;
  height: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

:root {
  --container-width: 1600px;
  --album-width: 200px;
}

h1, h2 {
  font-weight: normal;
  margin: 0;
}

figure {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #111;
  color: white;
  margin: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-item.........完整代码请登录后点击上方下载按钮下载查看

网友评论0