css实现背景渐变动画的简洁登录表单页面效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现背景渐变动画的简洁登录表单页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
#canvas {
box-shadow:0 0 10px #e4ffb8;
}
h1 {
color:#4c1caa;
text-align:t;
}
body {
margin:0;
padding:0;
font-family:"montserrat";
background-image:linear-gradient(125deg,#2c3e50,#27ae60,#2980b9,#e74c3c,#8e44ad);
background-size:400%;
animation:bganimation 15s infinite;
text-shadow:2.5px 5px 0.3125rem royalblue;
color:#8E44AD;
font-size:sans-serif;
}
.box {
width:300px;
padding:40px;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
text-align:center;
}
.box h1 {
color:greenyellow;
text-transform:uppercase;
font-weight:500;
}
input::-webkit-input-placeholder{
color:white;
font-size:20px;
}
.box input[type = "text"],.box input[type = "password"] {
border:0;
background:none;
display:block;
margin:20px auto;
text-align:center;
border:2px solid white;
padding:14px 10px;
width:200px;
outline:none;
color:white;
border-radius:24px;
transition:0.25s;
}
.box input[type = "text"]:focus,.box input[type = "password"]:focus {
width:280px;
border-color:#2ecc71;
}
-webkit-input-placeholder {
color:red;
font-size:20px;
line-height:50px;
}
.box input[type = "submit"] {
border:0;
background:none;
disp.........完整代码请登录后点击上方下载按钮下载查看
网友评论0