效果
源码
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animated Login Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box">
<form autocomplete="off">
<h2>登 录</h2>
<div class="inputBox">
<input type="text" required="required">
<span>用户名</span>
<i></i>
</div>
<div class="inputBox">
<input type="password" required="required">
<span>密码</span>
<i></i>
</div>
<div class="li