点击查看html编辑器说明文档

新背景样式edit icon

|
|
Fork(复制)
|
|
提交反馈
嵌入
设置
下载
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ...
展开
</head>
<body>
<div class="wrapper">
  <ul>
    <li class="circle"><span></span></li>
  </ul>
</div>


<div class="gradient-line"></div>
</body>
CSS
格式化


:root {
  --white: #ffffff;
  --light: #f0eff3;
  --black: #000000;
  --dark-blue: #1f2029;
  --dark-light: #353746;
  --red: #da2c4d;
  --yellow: #f8ab37;
  --grey: #ecedf3;
  --bg: #ffede9;
  --bg-color: rgba(62, 45, 92, 0.7);
  --bg-light-color: rgba(255, 34, 87, 0.7);
  --rosa: #fc00ff;
  --aqua: #89b482;
  --cream: hsl(38 47% 75%);
  --black: hsl(20 3% 19%);
  --greyLight-1: #e4ebf5;
  --greyLight-2: #00dbde;
  --greyLight-3: #bec8e4;
  --background:
    radial-gradient(
      6.67% 50% at 50% -50%,
      rgba(38, 217, 127, 0.1) 0%,
      rgba(38, 217, 127, 0) 0%
    ),
    radial-gradient(
      99.67% 100% at 50% -75%,
      rgba(71, 235, 235, 0.15) 0%,
      rgba(71, 235, 235, 0) 70%
    );
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Poppins", sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: rgba(25, 33, 56, 1.0);
  background-image: var(--background);
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}
body:before {
    content: "";
    height: 100vh;
    width: 100%;
    background: repeating-linear-gradient(45deg, var(--bg-color), var(--bg-color) 1em, var(--bg-light-color) 1em, var(--bg-light-color) 2em );
    display: flex;
    opacity: 0.1;
}
body:after {
    content: "";
    height: 100vh;
    width: 100%;
    background: repeating-linear-gradient(45deg, var(--bg-color), var(--bg-color) 1em, var(--bg-light-color) 1em, var(--bg-light-color) 2em );
    display: flex;
    opacity: 0.1;
}





.title_video {
  position: absolute;
  left: 50%;
  width: 100%;
  display: flex;
  transform: translateX(-50%);
  bottom: 0;
  opacity: 0.4;
  transition: 0.3s ease;
  max-width: 100%;
  backface-visibility: hidden;
}


@keyframes hueRotate {
  0% {
    filter: hue-rotate(0) blur(30px);
  }
  100% {
    filter: hue-rotate(360deg) blur(30px);
  }
}
.gradient-line:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  opacity: 0.4;
  bottom: -115px;
  height: 115px;
  filter: blur(20px);
  -webkit-filter: blur(20px);
  background-image: conic-gradient(from 180deg at 50% 100%, transparent 0, transparent 27%, #ff3998 27%, #d764ff 36.04%, #00b5ff 58.23%, #0fd 63%, #54fa43 73%, transparent 73%, transparent 100%);
  animation: hueRotate 2.9s linear infinite;
}







.banner {
  background-color: #252731;
  padding: 21px;
  opacity: 1;
  width: 40%;
  top: 20%;
  border-radius: 20px;
  position: absolute;
  z-index: 2147483645;
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  color: #e1e3eb;
  box-shadow: 0px 1px 3px rgba(9, 10, 15, 0.25), 0px 4px 16px rgba(9, 10, 15, 0.1), 0px 8px 24px rgba(9, 10, 15, 0.1), inset 0px 1px 1px #323543;
}
.banner .content {
  width: 100%;
  margin: 0 -50px 5px 50px;
}
.banner button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  color: inherit;
  outline: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  background: #2e303d;
  box-shadow: inset 0 0 0 1px #3c3e4d;
  line-height: 24px;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.2s;
}
.banner button:hover {
  background-color: #323543;
}
.banner button.muted {
  background: none;
  box-shadow: inset 0 0 0 1px #353744;
}
.banner button.muted:hover {
  background-color: #292b36;
}
.grid [class^=grid-] {
  float: left;
}
.grid .grid-1-2 {
  width: 50%;
}
.group:after {
  content: "";
  display: flex;
  clear: both;
}
.title__video {
  position: absolute;
  height: 50px;
  width: 100%;
  z-index: 1147483641;
  bottom: 0;
  right: 0;
  backface-visibility: hidden;
}


.wrapper {
  width: 30%;
  height:355px;
  position: absolute;
  top: 20%;
  display: flex;
  z-index: 9999;
  margin: 0 auto;
  background: circle(#2e3235, #181b1e);
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow:
    0 0 10px rgba(0,0,0,0.4),
    0 10px 10px 3px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(71, 235, 235,0.25);
  transition: all 0.5s ease;
}

ul {
  height: 100%;
  width: 100%;
}

li {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  border: 2px solid #16191c;
  background: #222529;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -2px 1px rgba(0,0,0,0.1),
    0 1px 1px rgba(255,255,255,0.1);
  cursor: pointer;
}

li:hover {
 	box-shadow:  
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -2px 1px rgba(0,0,0,0.1),
    0 1px 1px rgba(255,255,255,0.1),
    inset 0 20px 50px rgba(100,100,100,0.1);
}

li:active {
	transform: scale(0.9);
	transition: all 0.5s ease;
   box-shadow: 0px 0px 40px rgba(235, 85, 53, 1),
		0px 0px 1px rgba(255, 59, 242, 0.75), 0px 0px 1px rgba(235, 85, 53, 0.5),
		0px 0px 1px rgba(255, 59, 242, 0.35), 0px 0px 1px rgba(255, 59, 242, 0.2);
}

li span {
 	display: block;
}

.circle {
 	top: 5%;
  margin-top: -1px;
  right: 8px;
}

.circle span {
  border: 4px solid #eb5535;
  transform: scale(0.6);
  border-radius: inherit;
  height: 100%;
  width: 100%;
}

.title___video {
  position: absolute;
  height: 40px;
  width: 100%;
  bottom: 0;
  right: 0;
}
JS
格式化
预览
控制台