div+css实现动态背景简洁登陆表单页面代码

代码语言:html

所属分类:表单美化

代码描述:div+css实现动态背景简洁登陆表单页面代码

代码标签: div css 动态 背景 简洁 登陆 表单 页面 代码

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">



  <meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
    @import url("https://fonts.googleapis.com/css?family=Poppins:400,500,300,200,700");
body {
  margin: 0;
  background-color: white;
  font-family: Poppins, "Helvetica Neue", sans-serif;
}

.error-message {
  color: #ff2222;
}

.bg {
  background-image: linear-gradient(to right bottom, #9a9a9a, #848484, #6f6f6f, #5a5a5a, #464646, #3b3b3b, #303030, #252525, #1f1f1f, #191919, #141414, #0c0c0c);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.columns {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-height: 100vh;
  background-image: url("//repo.bfw.wiki//bfwrepo/images/login/7/bg8_ub3ck3.png");
  background-size: contain;
  background-repeat: no-repeat;
  animation-name: MOVE-BG;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes MOVE-BG {
  from {
    background-size: 80%;
  }
  to {
    background-size: 84%;
  }
}
@keyframes MOVE-BG-MOBILE {
  from {
    background-size: 90%;
  }
  to {
    background-size: 110%;
  }
}
.login-box {
  animation: fadeIn 1s;
  z-index: 10;
  border-radius: 5px;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  min-width: 400px;
  min-height: 200px;
  padding: 4rem 3rem;
  background-color: white;
}
.login-box a {
  text-decoration: none;
}
.login-box .login {
  display: none;
}
.login-box .signin {
  animation: fadeIn 0.8s;
}
.login-box .signup {
  animation: fadeIn 0.8s;
}
.login-box .action p {
  display: inline;
}
.login-box .action .signup {
  float: right;
  font-weight: 700;
}
.login-box .input-field {
  width: 75%;
  position: relative;
}
.login-box .input-field i {
  position: relative;
  position: absolute;
  top: 10px;
  left: 50px;
}
.login-box .input-field #password {
  background: url(//repo.bfw.wiki//bfwrepo/images/login/7/lock_dnkpk8.png) no-repeat 5%;
  background-size: 20px;
  z-index: 50;
}
.login-box .input-field #email {
  background: url(//repo.bfw.wiki//bfwrepo/images/login/7/name_1_rgo5hw.png) no-repeat 5%;
  background-size: 20px;
  z-index: 50;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0