Login with submit animation UX/UI
<div id="login">
  <div class="logo">
    <svg
      width="50"
      height="39"
      viewBox="0 0 50 39"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <path
        d="M16.4992 2H37.5808L22.0816 24.9729H1L16.4992 2Z"
        class="ccompli1"
        fill="#007AFF"
      ></path>
      <path
        d="M17.4224 27.102L11.4192 36H33.5008L49 13.0271H32.7024L23.2064 27.102H17.4224Z"
        class="ccustom"
        fill="#312ECB"
      ></path>
    </svg>
  </div>
  <div class="title">
    <h1>Login</h1>
    <p>Excepteur sint occaecat cupidatat non proident.</p>
  </div>
  <form class="form">
    <input type="email" placeholder="Email" />
    <input type="password" placeholder="Password" />
    <div class="buttons">
      <button type="button" class="main">Login</button>
      <button type="button">Register</button>
    </div>
  </form>

  <div class="footer">Powered by <b>Skriper</b></div>
</div>
/* Theming */
:root {
  --border-radius: 2px;
  --body-background: #57a8ff;
  --main-color: #3f9cff;
  --loader-color: #8f8f8f;
  --login-background: #fff;
  --color-text: #000;
}
/* End Theming */

* {
  box-sizing: border-box;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
}
body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  background-color: var(--body-background);
}
#login {
  position: absolute;
  width: 100%;
  max-width: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--login-background);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 6px solid rgba(0, 0, 0, 0.1);
}
#login .logo {
  padding-top: 20px;
  padding-bottom: 20px;
}
#login .logo svg {
  transform: scale(1.5);
}
#login .title {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 20px;
}
#login .title h1 {
  font-size: 18px;
  color: var(--color-text);
  opacity: 0.8;
  text-transform: uppercase;
  font-weight: bold;
}
#login .title p {
  font-size: 12px;
  color: var(--color-text);
  opacity: 0.6;
}
#login form input {
  width: 100%;
  margin-bottom: 20px;
  height: 40px;
  padding-left: 10px;
  padding-right: 0px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(0, 0, 0, 0.03);
}
#login form .buttons {
  display: flex;
  gap: 10px;
}
#login .buttons button {
  width: 100%;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.6;
  border-radius: var(--border-radius);
}
#login .buttons button.main {
  background: var(--main-color);
  color: #fff;
  opacity: 1;
}
#login .footer {
  padding-top: 40px;
  font-size: 12px;
  color: var(--color-text);
  opacity: 0.3;
}

/* Animation */
#login.busy * {
  display: none;
}
#login.busy {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  animation-delay: 0.3s;
  transition: all 0.2s ease;
}
@keyframes spin {
  0% {
    border-top: 6px solid var(--loader-color);
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    border-top: 6px solid var(--loader-color);
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
// Simulate submit event form
const button = document.querySelector("button.main")
const login = document.querySelector("#login")
button.onclick = () => {
  login.classList.add("busy")
  // Simulate end event
  setTimeout(() => {
    login.classList.remove("busy")
  }, 3000)
}

Login with submit animation UX/UI

  • Files
  • Index
  • Style
  • Script
  • README
  • CDN Add
  • Poppins v19 Google Fonts
HTML

title: description:

Markdown

PLEASE WAIT...