div+css实现玻璃体动态背景登录表单页面代码

代码语言:html

所属分类:表单美化

代码描述:div+css实现玻璃体动态背景登录表单页面代码

代码标签: div css 玻璃体 动态 背景 登录 表单 代码

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

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

<head>
    <meta charset="UTF-8">
<style>
    @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700;1,800;1,900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  --main-color: rgb(192, 60, 165);
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: linear-gradient(80deg, #34278d, #e0d3ef);
  font-family: "Poppins", sans-serif;
}
.top {
  position: absolute;
  max-height: 80rem;
  max-width: 80rem;
  height: 100%;
  width: 100%;
  border-radius: 50%;

  background-image: linear-gradient(80deg, #e0d3ef, var(--main-color));
  filter: blur(40px);
  animation: bottom 30s infinite;
}
@keyframes bottom {
  0%,
  100% {
    top: -10rem;
  }
  80% {
    top: 50rem;
  }
}
.bottom {
  position: absolute;
  max-height: 50rem;
  max-width: 50rem;
  height: 100%;
  width: 100%;
  right: 0;
  border-radius: 50%;

  background-image: linear-gradient(80deg, var(--main-color), #ebe9ee);

  filter: blur(2rem);
  animation: top 30s infinite;
}
@keyframes top {
  0%,
  100% {
    bottom: -10rem;
  }
  80% {
    bottom: 50rem;
  }
}
.left {
  position: absolute;
  max-height: 50rem;
  max-width: 50rem;
  height: 100%;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0