html让登录框3d,CSS3实现3D旋转动态显示登录注册
CSS3实现3D旋转动态显示登录注册
* {
Box-sizing: border-Box;
-webkit-font-smoothing: antialiased
}
body,html {
width: 100%;
height: 100%
}
body {
position: relative;
background: radial-gradient(#666,#222);
}
.form-card-container {
margin: 0 auto;
height: 375px;
-webkit-perspective: 300px;
perspective: 300px
}
.form_swap-link {
position: absolute;
margin-top: -33px;
margin-left: 0;
width: 50px;
height: 30px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
background: #00a7fe;
Box-shadow: 0 1px 3px rgba(0,.3);
color: #fff;
text-align: center;
text-decoration: none;
font: 15px Arial,"微软雅黑";
line-height: 30px
}
.form_swap-link:active {
animation: myfirst 1s
}
@keyframes myfirst {
0% {
font-size: 10px
}
50% {
font-size: 20px
}
}
.form-card {
position: absolute;
top: 50%;
left: 50%;
margin: 0 0 0 -150px;
width: 300px;
height: 250px;
-webkit-transition: -webkit-transform .8s;
transition: transform .8s;
-webkit-transition-timing-function: cubic-bezier(.68,-.55,.265,1.55);
transition-timing-function: cubic-bezier(.68,1.55);
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d
}
@keyframes user_animation {
0% {
margin-left: 30px
}
}
.form-card.form-card-flipped {
-webkit-transform: rotateX(-180deg);
transform: rotateX(-180deg)
}
.form-card_front:before {
content: "会员登录"
}
.form-card_back:before,.form-card_front:before {
display: block;
margin-top: 20px;
width: 300px;
color: #222;
text-align: center;
font: 21px Arial,"微软雅黑"
}
.form-card_back:before {
content: "快速注册"
}
.form-card_front input {
margin: 15px auto
}
.form-card_back input,.form-card_front input {
display: block;
width: 230px;
height: 30px;
outline: 0;
border: 1px solid #ddd;
border-radius: 4px;
text-indent: 5px;
font-size: 15px;
transition: all 1s ease
}
.form-card_back input {
margin: 10px auto
}
.form-card_back input:focus,.form-card_front input:focus {
border: 1px solid #229ffd
}
.form-card_back,.form-card_front {
position: absolute;
display: block;
width: 100%;
height: 100%;
border-radius: 4px;
background: #f5f5f5;
Box-shadow: 0 1px 3px rgba(0,.3);
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}
.form-card_back {
-webkit-transform: rotateX(180deg);
transform: rotateX(180deg)
}
#inuptUser:focus+label[for*=inuptUser]:before {
margin-top: -40px;
margin-left: 220px;
height: 20px;
color: #ddd;
content: '用户名'
}
#inuptPwd:focus+label[for*=inuptPwd]:before,#inuptUser:focus+label[for*=inuptUser]:before {
position: absolute;
display: block;
width: 150px;
font: 13px Arial,"微软雅黑";
transition: all .3s ease;
animation: user_animation 1s
}
#inuptPwd:focus+label[for*=inuptPwd]:before {
margin-top: -40px;
margin-left: 230px;
height: 26px;
color: #ccc;
content: '密码'
}
#regUser:focus+label[for*=regUser]:before {
position: absolute;
display: block;
margin-top: -35px;
margin-left: 220px;
width: 150px;
height: 20px;
color: #ddd;
content: '用户名';
font: 13px Arial,"微软雅黑";
transition: all .3s ease;
animation: user_animation 1s
}
#regPwd:focus+label[for*=regPwd]:before {
margin-left: 230px;
content: '密码'
}
#confirmPwd:focus+label[for*=confirmPwd]:before,#regPwd:focus+label[for*=regPwd]:before {
position: absolute;
display: block;
margin-top: -35px;
width: 150px;
height: 26px;
color: #ddd;
font: 13px Arial,"微软雅黑";
transition: all .3s ease;
animation: user_animation 1s
}
#confirmPwd:focus+label[for*=confirmPwd]:before {
margin-left: 205px;
content: '确认密码'
}
input[type="submit"] {
color:#555;
margin:10px auto;
display: block;
cursor: pointer;
width:230px;
height:30px;
color:#fff;
border-radius:4px;
border:1px solid #0d7bc4;
background: -webkit-linear-gradient( top,#229ffd,#1f86d4);
-webkit-Box-sizing: border-Box;
-moz-Box-sizing: border-Box;
Box-sizing: border-Box;
-webkit-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.05s;
transition-duration: 0.05s;
}
input[type="submit"]:active {
appearance: none;
text-decoration: none;
-webkit-Box-shadow:5px 5px 5px rgba(0,0.1) inset;
}
注册
登录
$('.form_swap-link').click(function() {
$('.form-card').toggleClass('form-card-flipped');
});
html让登录框3d,CSS3实现3D旋转动态显示登录注册相关推荐
- JQuery+CSS3实现封装弹出登录框效果
原文:JQuery+CSS3实现封装弹出登录框效果 上次发了一篇使用Javascript来实现弹出层的效果,这次刚好用了JQuery来实现,所以顺便记录一下: 因为这次使用了Bootstrap来做一个 ...
- 一个登录框引发的“安全问题”
一个文本框可能存在哪些漏洞 前言 用户名枚举 弱口令 空口令 登录认证绕过 存在暴力破解风险 图形验证码不失效 短信验证码绕过 短信验证码可暴力破解 短信验证码可预测 短信炸弹 恶意锁定问题 密码明文 ...
- 2022-05-10 实现一个可拖拽的弹出登录框
文章目录 要求 思路 完整代码 坐标说明(复习) 效果: 重点代码 要求 点击文字弹出一个带有样式的登录框 按下登录框的标题区域,可以实现拖动 思路 先计算鼠标的移动距离=移动的坐标-按下的坐标再计算 ...
- 2023-01-26 JS设计模式-单例模式:单例模式的原理和实现,懒汉模式和饿汉模式,单例模式实现登录框
文章目录 1.什么是单例模式? 介绍 特点 结构 2.如何实现一个单例模式? 思路 实现代码 3.单例模式的优缺点 4.懒汉模式和饿汉模式 懒汉模式:一开始不会实例化,什么时候用才new出来实例化 饿 ...
- Ios11 IphoneX 内购沙盒测试 无限弹登录框问题解决
最近升级了iOS11的,经常遇到内购沙盒测试的时候,发现输入沙盒账号密码之后,居然又弹出了登录框,之后便是循环弹登录框,刚开始还以为是代码问题,后来发现了是ios11升级后沙盒测试的问题. 下面有几种 ...
- CSS3实现3D立体效果
CSS3实现3D效果 1. 涉及到的几个CSS3属性 首先大家需要了解transform属性,主要有平移(translate),缩放(scale),拉伸(skew),旋转(rotate). 这里涉及到 ...
- html如何实现立体效果,CSS3实现3D立体效果
CSS3实现3D效果 1. 涉及到的几个CSS3属性 首先大家需要了解transform属性,主要有平移(translate),缩放(scale),拉伸(skew),旋转(rotate). 这里涉及到 ...
- 网页特效:用CSS3制作3D图片立方体旋转特效
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title&g ...
- 带你玩转css3的3D!
话不多说,先上demo 酷炫css3走马灯/正方体动画: https://bupt-hjm.github.io/cs... github源码地址:https://github.com/BUPT-HJM ...
- css3实现翻转效果,css3 实现3D翻转效果
css3 实现3D翻转效果. HTML源码: 前面内容,鼠标移到这,试试 用户名 密码 css源码: /* entire container, keeps perspective */ .flip-c ...
最新文章
- 全景分割 | Learning to Fuse Things and Stuff
- 机会!搞科研的同伴注意了,再忙也要看一下!
- 《JavaScript框架设计》——1.3 数组化
- Windows 编译cython nms
- oracle--表,用户,授权
- linux 网络设置
- “睡服”面试官系列第十七篇之Reflect(建议收藏学习)
- Sentinel 1.7.2 发布,完善开源生态及扩展性
- img写入工具_硬盘有坏道,得用靠谱的修复工具,这3个不会让你失望
- RTT添加AD驱动代码
- BZOJ2563 阿狸和桃子的游戏
- 判断日期是否是合法的:
- cmd命令结束端口进程
- ldap radius mysql_freeradius +ldap
- DGUS组态软件中图标旋转显示如何使用
- VSE++: Improving Visual-Semantic Embeddings with Hard Negatives------BMVC 2018
- 最长山脉 python
- awk及sum求和!
- C语言百分号加字母%d%p%o%x%u%c%s%f%e%g代表作用
- android微信刷脸支付宝,微信刷脸支付和支付宝刷脸支付一样吗