Skip to content

SSH Login Sequence

A copy-paste code & terminal component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Code & TerminalHTMLCSSany framework

Copy into your project

HTML
<!-- SSH Login Sequence — lines fade up in order, password dots reveal via clip-path, caret blinks at the end -->
<div class="nuda-ct2-ssh-login">
  <div class="nuda-ct2-ssh-login__line" style="--d: 0s"><b>$</b> ssh deploy@nuda.dev</div>
  <div class="nuda-ct2-ssh-login__line" style="--d: .35s">Password: <span class="nuda-ct2-ssh-login__dots">••••••••</span></div>
  <div class="nuda-ct2-ssh-login__line nuda-ct2-ssh-login__line--ok" style="--d: .7s">Welcome to Ubuntu 22.04 LTS</div>
  <div class="nuda-ct2-ssh-login__line" style="--d: 1.05s">
    <b>deploy@nuda</b>:~$ <span class="nuda-ct2-ssh-login__caret"></span>
  </div>
</div>
CSS
.nuda-ct2-ssh-login {
  width: 290px;
  background: #09090b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 11px 13px;
  font: 500 11px ui-monospace,SFMono-Regular,Menlo,monospace;
  color: #a1a1aa;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nuda-ct2-ssh-login__line {
  opacity: 0;
  transform: translateY(2px);
  animation: _nuda-ct2sshloginin .35s cubic-bezier(.4,0,.2,1) var(--d,0s) forwards;
}

.nuda-ct2-ssh-login__line b {
  color: #e4ff54;
  font-weight: 700;
}

.nuda-ct2-ssh-login__line--ok {
  color: #fafafa;
}

.nuda-ct2-ssh-login__dots {
  display: inline-block;
  letter-spacing: 2px;
  color: #fbbf24;
  clip-path: inset(0 100% 0 0);
  animation: _nuda-ct2sshloginreveal .5s steps(8) .35s forwards;
}

.nuda-ct2-ssh-login__caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: #e4ff54;
  vertical-align: -2px;
  animation: _nuda-ct2sshloginblink 1s steps(2) infinite;
  animation-delay: 1.4s;
}

@keyframes _nuda-ct2sshloginin {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes _nuda-ct2sshloginreveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes _nuda-ct2sshloginblink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ct2-ssh-login__line {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .nuda-ct2-ssh-login__dots {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
  .nuda-ct2-ssh-login__caret {
    animation: none;
  }
}

How to use SSH Login Sequence

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More code & terminal components

← Browse all NudaUI components