SOURCE

console 命令行工具 X clear

                    
>
console
<!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, inital-scale=1.0" />
    <link rel="stylesheet" href="19.css" />
    <title>CSS</title>
  </head>
  <body>
    <div class="inputBox">
      <input type="text" required />
      <label>Wavy&nbsp;Input&nbsp;Text&nbsp;Animation</label>
    </div>
    <script>
      let label = document.querySelector("label");
      label.innerHTML = label.innerText
        .split("")
        .map(
          (letters, i) =>
            `<span style="transition-delay: ${i * 30}ms;filter: hue-rotate(${
              i * 10
            }deg);">${letters}</span>`
        )
        .join("");
    </script>
  </body>
</html>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #29313a;
}
.inputBox {
  position: relative;
  width: 350px;
}
.inputBox input {
  position: relative;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 2px solid #999;
  color: #fff;
  letter-spacing: 0.05em;
  font-size: 1.25em;
  transition: 0.5s;
}
.inputBox label {
  position: absolute;
  left: 0;
  padding: 10px 0;
  pointer-events: none;
  color: #666;
  user-select: none;
}
.inputBox label span {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  font-size: 1.25em;
  letter-spacing: 0.05em;
  transition: 0.25s cubic-bezier(0.5, 1, 0.5, 1.5);
}
.inputBox input:focus ~ label span,
.inputBox input:valid ~ label span {
  color: #0f0;
  text-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0;
  transform: translateY(-30px);
}
.inputBox input:focus,
.inputBox input:valid {
  border-bottom: 2px solid #fff;
}