Status lines print one after another like a machine booting, each with a green-lit OK in your accent color, ending on a login prompt with a blinking underscore cursor.
Also known as: linux boot text animation, console startup animation, system boot log css.
Booting from disk...
[ OK ] Started network service
[ OK ] Mounted /home
[ OK ] Reached target: login
login:
<div class="txt-terminal-boot-sequence"> <p style="--i: 0">Booting from disk...</p> <p style="--i: 1"><b>[ OK ]</b> Started network service</p> <p style="--i: 2"><b>[ OK ]</b> Mounted /home</p> <p style="--i: 3"><b>[ OK ]</b> Reached target: login</p> <p style="--i: 4">login: <span class="txt-terminal-boot-sequence-caret" aria-hidden="true"></span></p> </div>
.txt-terminal-boot-sequence {
--c: var(--txt-color, #3b82f6);
font-size: var(--txt-size, 32px);
font-family: system-ui, sans-serif;
font-weight: 700;
line-height: 1.2;
display: inline-block;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: calc(var(--txt-size, 32px) * 0.5);
font-weight: 500;
line-height: 1.55;
text-align: left;}
.txt-terminal-boot-sequence p {
margin: 0;
white-space: pre;
color: color-mix(in srgb, currentColor 80%, transparent);
clip-path: inset(0 100% 0 0);
/* each line prints left to right in a few jerky steps */
animation: txt-terminal-boot-sequence-print 0.22s steps(6) calc(0.3s + var(--i) * 0.42s) forwards;
}
.txt-terminal-boot-sequence p:first-child {
color: color-mix(in srgb, currentColor 50%, transparent);
}
.txt-terminal-boot-sequence b {
font-weight: 700;
color: var(--c);
}
.txt-terminal-boot-sequence-caret {
display: inline-block;
width: 1ch;
height: 0.14em;
background: var(--c);
animation: txt-terminal-boot-sequence-blink 0.9s step-end infinite;
}
@keyframes txt-terminal-boot-sequence-print {
99.9%, to { clip-path: inset(0 0 0 0); }
}
@keyframes txt-terminal-boot-sequence-blink {
50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.txt-terminal-boot-sequence, .txt-terminal-boot-sequence *, .txt-terminal-boot-sequence::before, .txt-terminal-boot-sequence::after, .txt-terminal-boot-sequence *::before, .txt-terminal-boot-sequence *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}--txt-color on the element or a parent.
Currently previewing #3b82f6.--txt-size. Every other dimension is in
em, so the whole thing scales together. Currently previewing 40px.transition or animation
shorthand. Staggered delays are relative, so they keep their rhythm.