js+css实现卡片式前后层叠切换登录注册表单页面效果代码
代码语言:html
所属分类:表单美化
代码描述:js+css实现卡片式前后层叠切换登录注册表单页面效果代码
代码标签: js css 卡片 前后 层叠 切换 登录 注册 表单
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html lang="en"><head> <meta charset="UTF-8"> <style> body { color: #b5b5b5; font-family: "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft Yahei", "WenQuanYi Micro Hei", Arial, Verdana, sans-serif; background-color: #3A4565; } .left { float: left; } .right { float: right; } .clear-fix { clear: both; } .line { border-bottom: 1px solid #ececec; } .panel { width: 600px; margin: auto; } .panel--title { color: #3A4565; font-size: 20px; font-weight: 400; text-align: left; padding: 30px 0px 20px 25px; } .panel--wrapper { width: 100%; float: left; position: relative; } .panel--box { width: 50%; float: left; z-index: 1; position: absolute; border-radius: 4px; transition: all 0.5s; opacity: 0.1; margin-top: 40px; background-color: #ffffff; } .panel--box.active { z-index: 2; opacity: 1; } .panel--box:first-child { left: 0; transform: translateX(30%) scale(0.8); -webkit-animation: box-1--out 0.5s; animation: box-1--out 0.5s; transform-origin: center right; } .panel--box:first-child.active { transform: translateX(35%); -webkit-animation: box-1 0.5s; animation: box-1 0.5s; } .panel--box:last-child { right: 0; transform: translateX(-30%) scale(0.8); -webkit-animation: box-2--out 0.5s; animation: box-2--out 0.5s; transform-origin: center left; } .panel--box:last-child.active { -webkit-animation: box-2 0.5s; animation: box-2 0.5s; transform: translateX(-35%); } .sign--input { border-left: 5px solid transparent; transition: all 0.3s linear; } .sign--input:hover { background: #F0F0F0; border-left: 5px solid #6172a4; } .sign--input input { width: 290px; padding: 20px 0px; background: tran.........完整代码请登录后点击上方下载按钮下载查看
网友评论0