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 3p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0