<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
/*flex-direction: column;*/
justify-content: center;
align-items: center;
min-height: 100px;
height: 720px;
background: #23242a;
}
.box{
position: relative;
width: 380px;
height: 420px;
/*margin-top: 100px;;*/
background: #1c1c1c;
border-radius: 8px;
overflow: hidden;
}
.box::before{
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 380px;
height: 420px;
transform-origin: bottom right;
background: linear-gradient(0deg, transparent,#45f3ff,#45f3ff);
animation: animate 6s linear infinite;
}
.box::after{
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 380px;
height: 420px;
transform-origin: bottom right;
background: linear-gradient(0deg, transparent,#45f3ff,#45f3ff);
animation: animate 6s linear infinite;
animation-delay: -3s;
}
@keyframes animate {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
.form{
position: absolute;
inset: 2px;
background: #28292d;
border-radius: 8px;
padding: 50px 40px;
z-index: 10;
display: flex;
flex-direction: column;
}
.inputBox{
position: relative;
width: 300px;
margin-top: 35px;
}
.form h2{
color: #45f3ff;
font-weight: 500;
text-align: center;
letter-spacing: 0.1em;
}
.inputBox input{
position: relative;
width: 300px;
padding: 20px 10px 10px;
background: transparent;
border: none;
outline: crimson;
color: #23242a;
font-size: 1em;
z-index: 10;
letter-spacing: 0.05em;
}
.inputBox span{
position: absolute;
left: 0;
padding: 20px 0 10px;
font-size: 1em;
color: #8f8f8f;
pointer-events: none;
letter-spacing: 0.05em;
transition: 0.5s;
}
.inputBox input:valid ~ span,
.inputBox input:focus ~ span
{
color: #45f3ff;
transform: translateX(0px) translateY(-34px);
font-size: 0.75em;
}
.inputBox i{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: #45f3ff;
border-radius: 4px;
transition: 0.5s;
pointer-events: none;
z-index: 9;
}
.inputBox input:valid ~ i,
.inputBox input:focus ~ i{
height: 44px;
}
.links{
display: flex;
justify-content: space-between;
}
.links a{
margin: 10px 0;
font-size: 0.75em;
color: #8f8f8f;
text-decoration: none;
}
.links a:hover,
.links a:nth-child(2){
color: #45f3ff;
}
input[type="submit"] {
border: none;
outline: none;
background: #45f3ff;
padding: 11px 35px;
width: 100px;
margin-top: 10px;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
}
</style>
</script>
</head>
<body>
<div class="box">
<div class="form">
<h2>Sign in</h2>
<div class="inputBox">
<input type="text" required="required">
<span>Username</span>
<i></i>
</div>
<div class="inputBox">
<input type="password" required>
<span>Password</span>
<i></i>
</div>
<div class="links">
<a href="#">Forgot Password</a>
<a href="#">Sign up</a>
</div>
<input type="submit" value="login"></input>
</div>
</div>
</body>
</html>
CSS 线条流转 login
转载请注明出处或者链接地址:https://www.qianduange.cn//article/2143.html
相关文章
-
web前端期末大作业——基于html css javascript jquery bootstarp响应式的出国旅游定制公司官网 (17页)
-
关于useState塞入默认值是props传入来却没有生效
-
HTML5网页设计制作基础大二dreamweaver作业、使用HTML CSS技术制作博客网站(5个页面)
-
HTML5与CSS3
-
html5qrcode的使用(自留笔记)
-
HTML5 <details> 标签、HTML5 <div> 标签
-
用HTML5 JavaScript绘制花、树
-
HTML5七夕情人节表白网页制作【一箭穿心动画css3代码】HTML CSS JavaScript
-
用HTML5和JavaScript实现黑客帝国风格的字符雨效果
-
[HTML]Web前端开发技术30(HTML5、CSS3、JavaScript )JavaScript基础——喵喵画网页
发布的文章
基于javaweb mysql的ssm汽车出租管理系统(java ssm jsp jquery mysql)
2024-01-31 12:01:48
基于Javaweb的网上购物商城系统源码,用jsp servlet jQuery
2024-03-02 09:03:10
无涯教程-jQuery - Ajaxcomplete方法函数
2024-03-02 09:03:09
web前端期末大作业——基于html css javascript jquery bootstarp响应式的出国旅游定制公司官网 (17页)
2024-02-13 10:02:24
VUE中引入外部jquery.min.js文件
2024-03-02 09:03:07
jquery和php json字符串转数组对象 和 数组对象转json字符串
2024-03-02 09:03:07
vue-echarts实现多功能图表
2024-03-02 09:03:54
echarts参数详细介绍
2024-03-02 09:03:53
Echarts图表中formatter的用法
2024-03-02 09:03:51
Echarts的地图实现拖拽缩放同步功能(解决多层geo缩放、拖动卡顿问题)
2024-03-02 09:03:48
大家推荐的文章