css布局实现简洁登录和找回密码页面表单效果代码
代码语言:html
所属分类:表单美化
代码描述:css布局实现简洁登录和找回密码页面表单效果代码,点击忘记密码可切换到找回密码页面。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
* {
outline-width: 0;
font-family: "Nunito" !important;
}
body {
height: 100vh;
width: 100vw;
background: url("//repo.bfw.wiki/bfwrepo/image/615cf7a3d9d92.png") center/cover fixed;
display: flex;
justify-content: center;
align-items: center;
}
#formContainer {
display: flex;
transition: 0.2s ease;
height: 342.5px;
transition-delay: 0.3s;
}
#formContainer.toggle {
height: 480px;
transition-delay: 0s;
}
.formLeft {
background: #fff;
border-radius: 5px 0 0 5px;
padding: 0 35px;
box-sizing: border-box;
display: flex;
align-items: center;
}
.formLeft img {
display: block;
width: 72px;
border-radius: 50%;
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}
.formRight {
position: relative;
overflow: hidden;
border-radius: 0 5px 5px 0;
display: flex;
flex-direction: column;
justify-content: center;
}
.formRight:before {
content: "";
position: absolute;
top: -10px;
left: -10px;
width: calc(100% + 20px);
height: calc(100% + 20px);
background: url("//repo.bfw.wiki/bfwrepo/image/615cf7a3d9d92.png") center/cover fixed;
box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
filter: blur(5px);
}
.formRight form {
position: relative;
width: 350px;
padding: 25px;
box-sizing: border-box;
white-space: no.........完整代码请登录后点击上方下载按钮下载查看
网友评论0