位置: IT常识 - 正文

分享两个有意思的登录界面(有意义的分享)

编辑:rootadmin
分享两个有意思的登录界面

推荐整理分享分享两个有意思的登录界面(有意义的分享),希望有所帮助,仅作参考,欢迎阅读内容。

分享两个有意思的登录界面(有意义的分享)

文章相关热门搜索词:分享一个比较有意思的话题,分享一个比较有意思的话题,有意义的分享,分享两个有意思的故事,有意思的分享,分享一个比较有意思的话题,分享两个有意思的人,分享两个有意思的事情,内容如对您有帮助,希望把文章链接给更多的朋友!

1.带有浮动占位符和灯光按钮的登录界面 先上效果: 代码如下:

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> html { height: 100%; } body { margin:0; padding:0; font-family: sans-serif; background: linear-gradient(#141e30, #243b55); } .login-box { position: absolute; top: 50%; left: 50%; width: 400px; padding: 40px; transform: translate(-50%, -50%); background: rgba(0,0,0,.5); box-sizing: border-box; box-shadow: 0 15px 25px rgba(0,0,0,.6); border-radius: 10px; } .login-box h2 { margin: 0 0 30px; padding: 0; color: #fff; text-align: center; } .login-box .user-box { position: relative; } .login-box .user-box input { width: 100%; padding: 10px 0; font-size: 16px; color: #fff; margin-bottom: 30px; border: none; border-bottom: 1px solid #fff; outline: none; background: transparent; } .login-box .user-box label { position: absolute; top:0; left: 0; padding: 10px 0; font-size: 16px; color: #fff; pointer-events: none; transition: .5s; } .login-box .user-box input:focus ~ label, .login-box .user-box input:valid ~ label { top: -20px; left: 0; color: #03e9f4; font-size: 12px; } .login-box form a { position: relative; display: inline-block; padding: 10px 20px; color: #03e9f4; font-size: 16px; text-decoration: none; text-transform: uppercase; overflow: hidden; transition: .5s; margin-top: 40px; letter-spacing: 4px } .login-box a:hover { background: #03e9f4; color: #fff; border-radius: 5px; box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 100px #03e9f4; } .login-box a span { position: absolute; display: block; } .login-box a span:nth-child(1) { top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #03e9f4); animation: btn-anim1 1s linear infinite; } @keyframes btn-anim1 { 0% { left: -100%; } 50%,100% { left: 100%; } } .login-box a span:nth-child(2) { top: -100%; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, #03e9f4); animation: btn-anim2 1s linear infinite; animation-delay: .25s } @keyframes btn-anim2 { 0% { top: -100%; } 50%,100% { top: 100%; } } .login-box a span:nth-child(3) { bottom: 0; right: -100%; width: 100%; height: 2px; background: linear-gradient(270deg, transparent, #03e9f4); animation: btn-anim3 1s linear infinite; animation-delay: .5s } @keyframes btn-anim3 { 0% { right: -100%; } 50%,100% { right: 100%; } } .login-box a span:nth-child(4) { bottom: -100%; left: 0; width: 2px; height: 100%; background: linear-gradient(360deg, transparent, #03e9f4); animation: btn-anim4 1s linear infinite; animation-delay: .75s } @keyframes btn-anim4 { 0% { bottom: -100%; } 50%,100% { bottom: 100%; } } </style></head><body><div class="login-box"> <h2>Login</h2> <form> <div class="user-box"> <input type="text" name="" required=""> <label>Username</label> </div> <div class="user-box"> <input type="password" name="" required=""> <label>Password</label> </div> <a href="#"> <span></span> <span></span> <span></span> <span></span> Submit </a> </form></div></body></html>

2.跳跃的登录字符登陆界面 先上效果: 代码如下:

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="style.css" /> <title>Form Input Wave</title> <style> @import url('https://fonts.googleapis.com/css?family=Muli&display=swap'); * { box-sizing: border-box; } body { background-color: steelblue; color: #fff; font-family: 'Muli', sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; overflow: hidden; margin: 0; } .container { background-color: rgba(0, 0, 0, 0.4); padding: 20px 40px; border-radius: 5px; } .container h1 { text-align: center; margin-bottom: 30px; } .container a { text-decoration: none; color: lightblue; } .btn { cursor: pointer; display: inline-block; width: 100%; background: lightblue; padding: 15px; font-family: inherit; font-size: 16px; border: 0; border-radius: 5px; } .btn:focus { outline: 0; } .btn:active { transform: scale(0.98); } .text { margin-top: 30px; } .form-control { position: relative; margin: 20px 0 40px; width: 300px; } .form-control input { background-color: transparent; border: 0; border-bottom: 2px #fff solid; display: block; width: 100%; padding: 15px 0; font-size: 18px; color: #fff; } .form-control input:focus, .form-control input:valid { outline: 0; border-bottom-color: lightblue; } .form-control label { position: absolute; top: 15px; left: 0; pointer-events: none; } .form-control label span { display: inline-block; font-size: 18px; min-width: 5px; transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .form-control input:focus + label span, .form-control input:valid + label span { color: lightblue; transform: translateY(-30px); } </style></head><body><div class="container"> <h1>Please Login</h1> <form> <div class="form-control"> <input type="text" required> <label>Email</label> <!-- <label> <span style="transition-delay: 0ms">E</span> <span style="transition-delay: 50ms">m</span> <span style="transition-delay: 100ms">a</span> <span style="transition-delay: 150ms">i</span> <span style="transition-delay: 200ms">l</span> </label> --> </div> <div class="form-control"> <input type="password" required> <label>Password</label> </div> <button class="btn">Login</button> <p class="text">Don't have an account? <a href="#">Register</a> </p> </form></div><script> const labels = document.querySelectorAll('.form-control label') labels.forEach(label => { label.innerHTML = label.innerText .split('') .map((letter, idx) => `<span style="transition-delay:${idx * 50}ms">${letter}</span>`) .join('') })</script></body></html>
本文链接地址:https://www.jiuchutong.com/zhishi/296125.html 转载请保留说明!

上一篇:微信小程序 使用全局变量(微信小程序使用费用)

下一篇:基于Java+Springboot+vue在线版权登记管理系统设计实现

  • 哪些企业可以出2.2证书
  • 企业分红缴纳所得税
  • 进项税额可以不转出吗
  • 企业轿车报废
  • 财务担保费计入什么科目
  • 收到股东投资款怎么做账
  • 固定资产账实不符的审计定性
  • 计提折旧需要减去预计净残值吗
  • 仪器检测费发票哪一类
  • 费用分摊怎么算
  • 销售利润率如何提高
  • 增值税税负率计算包含附加税吗
  • 车辆增值税抵扣多少点
  • 设备销售并负责安装税率是多少
  • 私募投资基金投资者风险问卷调查
  • 借款利息不能抵扣进项税
  • 销售方开的普票税额怎么处理
  • 酒店水电费分录
  • 兼职劳务费个税怎么算
  • 香港企业股东分红税
  • 内存条松动导致黑屏
  • 少数股东持股比例
  • 累计摊销在资产里怎么算
  • 进货折扣适用于什么条件
  • 单位办事人员
  • window10如何设置休眠时间
  • msstat.exe - msstat是什么进程 有什么用
  • hiddenalbum是什么文件夹
  • 提租补贴应计入什么科目
  • 支付征地补偿款计入什么科目
  • 视同销售的会计处理怎么做?
  • 后台管理系统权限管理详解
  • vue报错cannot read property
  • 借款利息税前扣除需要发票
  • 吸收合并重组
  • 应收账款项目在资产负债表怎么填列
  • 私营独资企业的税收规定
  • 增值税发票申报单怎么填
  • 固定资产进项抵扣新政策2021
  • 保安行业税率是多少
  • php连接不上数据库sql
  • php.ini中date.timezone设置详解
  • 加工票可以抵扣吗
  • 支付宝是商品吗
  • 备抵法账务处理方式
  • 老生常谈的近义词
  • 有净残值的固定资产如何折旧
  • MySQL中create table as 与like的区别分析
  • sqlserver触发器在哪个位置
  • 客户货款打到私人微信,删除公司电脑数据
  • 本月暂估入库,下月
  • 单位购买防疫物资请示
  • 结汇是把外币换成人民币吗
  • 其他应收款收不回来了,如何核销
  • sqlserverssms
  • mysql表字段设置默认值
  • sql group by语句
  • 淘宝pc端打不开
  • 操作系统有哪些
  • windows8.
  • linux安装迅雷
  • win81蓝屏重启故障
  • win8开始菜单变为win10
  • win7蓝牙驱动软件
  • opengl阴影平移
  • JavaScript中的数据类型分为两大类
  • python模块和类和方法
  • jqgrid设置宽度
  • express中间件面试题
  • python中str的用法
  • 下列关于eval()函数的说法正确的是
  • python静态函数
  • java分布式计算
  • js中的array数组有什么缺点
  • 淘宝模拟生成器
  • js new()
  • 建筑业增值税纳税义务发生时间包括
  • 供热基础设施配套费
  • 广西定额发票查询入口官网
  • 教育用地性质可以更改么
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设