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旋转动态显示登录注册相关推荐

  1. JQuery+CSS3实现封装弹出登录框效果

    原文:JQuery+CSS3实现封装弹出登录框效果 上次发了一篇使用Javascript来实现弹出层的效果,这次刚好用了JQuery来实现,所以顺便记录一下: 因为这次使用了Bootstrap来做一个 ...

  2. 一个登录框引发的“安全问题”

    一个文本框可能存在哪些漏洞 前言 用户名枚举 弱口令 空口令 登录认证绕过 存在暴力破解风险 图形验证码不失效 短信验证码绕过 短信验证码可暴力破解 短信验证码可预测 短信炸弹 恶意锁定问题 密码明文 ...

  3. 2022-05-10 实现一个可拖拽的弹出登录框

    文章目录 要求 思路 完整代码 坐标说明(复习) 效果: 重点代码 要求 点击文字弹出一个带有样式的登录框 按下登录框的标题区域,可以实现拖动 思路 先计算鼠标的移动距离=移动的坐标-按下的坐标再计算 ...

  4. 2023-01-26 JS设计模式-单例模式:单例模式的原理和实现,懒汉模式和饿汉模式,单例模式实现登录框

    文章目录 1.什么是单例模式? 介绍 特点 结构 2.如何实现一个单例模式? 思路 实现代码 3.单例模式的优缺点 4.懒汉模式和饿汉模式 懒汉模式:一开始不会实例化,什么时候用才new出来实例化 饿 ...

  5. Ios11 IphoneX 内购沙盒测试 无限弹登录框问题解决

    最近升级了iOS11的,经常遇到内购沙盒测试的时候,发现输入沙盒账号密码之后,居然又弹出了登录框,之后便是循环弹登录框,刚开始还以为是代码问题,后来发现了是ios11升级后沙盒测试的问题. 下面有几种 ...

  6. CSS3实现3D立体效果

    CSS3实现3D效果 1. 涉及到的几个CSS3属性 首先大家需要了解transform属性,主要有平移(translate),缩放(scale),拉伸(skew),旋转(rotate). 这里涉及到 ...

  7. html如何实现立体效果,CSS3实现3D立体效果

    CSS3实现3D效果 1. 涉及到的几个CSS3属性 首先大家需要了解transform属性,主要有平移(translate),缩放(scale),拉伸(skew),旋转(rotate). 这里涉及到 ...

  8. 网页特效:用CSS3制作3D图片立方体旋转特效

    <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title&g ...

  9. 带你玩转css3的3D!

    话不多说,先上demo 酷炫css3走马灯/正方体动画: https://bupt-hjm.github.io/cs... github源码地址:https://github.com/BUPT-HJM ...

  10. css3实现翻转效果,css3 实现3D翻转效果

    css3 实现3D翻转效果. HTML源码: 前面内容,鼠标移到这,试试 用户名 密码 css源码: /* entire container, keeps perspective */ .flip-c ...

最新文章

  1. 全景分割 | Learning to Fuse Things and Stuff
  2. 机会!搞科研的同伴注意了,再忙也要看一下!
  3. 《JavaScript框架设计》——1.3 数组化
  4. Windows 编译cython nms
  5. oracle--表,用户,授权
  6. linux 网络设置
  7. “睡服”面试官系列第十七篇之Reflect(建议收藏学习)
  8. Sentinel 1.7.2 发布,完善开源生态及扩展性
  9. img写入工具_硬盘有坏道,得用靠谱的修复工具,这3个不会让你失望
  10. RTT添加AD驱动代码
  11. BZOJ2563 阿狸和桃子的游戏
  12. 判断日期是否是合法的:
  13. cmd命令结束端口进程
  14. ldap radius mysql_freeradius +ldap
  15. DGUS组态软件中图标旋转显示如何使用
  16. VSE++: Improving Visual-Semantic Embeddings with Hard Negatives------BMVC 2018
  17. 最长山脉 python
  18. awk及sum求和!
  19. C语言百分号加字母%d%p%o%x%u%c%s%f%e%g代表作用
  20. android微信刷脸支付宝,微信刷脸支付和支付宝刷脸支付一样吗

热门文章

  1. 【114天】尚学堂高琪JAVA300篇视频精华笔记(1-6)
  2. 安卓Android弹幕效果实现-简单易懂
  3. Windows 安全补丁
  4. 清理linux系统内存缓存
  5. 如何让百度收录你的网站
  6. 线代 006 克拉默法则 线性方程组求解
  7. 2022吴恩达机器学习第二周
  8. html网页制作提交注册信息,利用HTML表单标签编写一个注册页面
  9. python的shape和reshape_一文浅显易懂:Python中shape()和reshape()的用法和区别
  10. Java 买卖股票的最佳时机含手续费leetcode_714