位置: 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在线版权登记管理系统设计实现

  • 创维电视怎么恢复出厂设置(创维电视怎么恢复以前版本)

  • 微信公众号草稿恢复(微信公众号草稿箱继续编辑后怎样发送)

  • 苹果11没有录屏按钮怎么办(苹果13没有录屏功能吗)

  • 淘宝几天后自动确认收货(淘宝几天后自动签收 什么时候开始算时间)

  • 小红书背景音乐怎么关(最近流行的小红书背景音乐)

  • 帮人微信解封有风险吗(帮人微信解封有风险吗?能不能做)

  • u盘0字节一般能恢复吗(u盘为0字节)

  • 发光二极管是什么导体(发光二极管是什么能转化为什么能)

  • 手机字库坏了值得修吗(手机字库坏了什么后果)

  • 小米5电池不耐用(小米5电池不耐电怎么办)

  • 朋友圈能发多少字(朋友圈能发多少秒的视频了)

  • 华为手机ars一al00参数(华为手机ARS一AL00停产了吗)

  • 天猫精灵可以一直开着吗(天猫精灵可以一直插着吗)

  • 荣耀手环5无法同步睡眠数据(荣耀手环5无法绑定微信)

  • 防火墙位于网络中哪个位置(防火墙位于网络的什么位置)

  • 手机膜蓝光和高清有什么区别(手机膜蓝光和高清哪个好)

  • 小米和紫米是什么关系(小米和紫米是什么意思啊)

  • 华为手机wifi认证不弹出(华为手机wifi认证页面)

  • 微信怎么在群里发长视频(微信怎么在群里给个人转账)

  • 苹果7p怎么调24小时制(苹果7p怎么调手写输入法)

  • 电脑命令窗口怎么打开(电脑命令窗口怎么换行)

  • 咪咕盒子怎么连接wifi(咪咕盒子怎么连接手机)

  • 哈罗单车扫不了怎么回事(哈罗单车扫不了二维码)

  • 千牛怎么改店铺头像(千牛怎么改店铺名字)

  • badblocks命令 检查磁盘装置中损坏的区块(bad block bitmap checksum)

  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设 电脑维修 湖南楚通运网络