70 lines
1.4 KiB
HTML
70 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
<style>
|
|
input {
|
|
width: 250px;
|
|
transition: all 2s cubic-bezier(0.7, -0.25, 0.84, 1.58);
|
|
}
|
|
|
|
input:hover {
|
|
width: 400px;
|
|
}
|
|
|
|
|
|
@keyframes an {
|
|
/* from {
|
|
width: 200px;
|
|
height: 200px;
|
|
background: red;
|
|
}
|
|
|
|
to {
|
|
width: 300px;
|
|
height: 300px;
|
|
background: blue;
|
|
border-radius: 100%;
|
|
} */
|
|
|
|
0% {
|
|
width: 200px;
|
|
height: 200px;
|
|
background: red;
|
|
}
|
|
|
|
50% {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: yellow;
|
|
}
|
|
|
|
100% {
|
|
width: 300px;
|
|
height: 300px;
|
|
background: blue;
|
|
}
|
|
}
|
|
|
|
.box {
|
|
width: 200px;
|
|
height: 200px;
|
|
animation: an 3s ease infinite alternate;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<input type="text" placeholder="输入密码">
|
|
|
|
<div class="box"></div>
|
|
</body>
|
|
|
|
</html> |