A green phosphor BIOS screen counts the memory test up to 65536K OK, then prints the drive check and Press DEL with a blinking cursor, under scanlines, glow and curved corners. One stepped integer.
Also known as: terminal typing animation, green phosphor terminal css, bios boot screen css, retro computer boot text.
<div class="txt-bios-memory-test" aria-label="BIOS memory test: 65536K OK">
<div class="txt-bios-memory-test-screen" aria-hidden="true">
<p class="txt-bios-memory-test-dim">BIOS v4.51PG (C) 1996</p>
<p>CPU : 133 MHz</p>
<p>Memory Test : <span class="txt-bios-memory-test-mem"></span><b>OK</b></p>
<p class="txt-bios-memory-test-l4">Primary Master ... 1.2 GB</p>
<p class="txt-bios-memory-test-l5">Press DEL to enter SETUP<span class="txt-bios-memory-test-cursor"></span></p>
</div>
</div>@property --txt-bios-memory-test-k {
syntax: "<integer>";
initial-value: 65536;
inherits: false;
}
.txt-bios-memory-test {
--c: var(--txt-color, #3b82f6);
font-size: calc(var(--txt-size, 32px) * 0.5);
font-family: system-ui, sans-serif;
font-weight: 700;
line-height: 1.2;
--ph: color-mix(in srgb, var(--c) 15%, #45ff86);
--t: 8s;
display: inline-block;
padding: 0.5em;
border-radius: 1.1em;
background: linear-gradient(#2b2b2b, #161616);
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 0.6em 1.4em -0.6em rgb(0 0 0 / 0.5);}
.txt-bios-memory-test-screen {
position: relative;
width: 22em;
padding: 0.9em 1.1em;
border-radius: 0.8em / 1.1em;
overflow: hidden;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-weight: 500;
line-height: 1.45;
color: var(--ph);
background: radial-gradient(120% 100% at 50% 45%, #0a1a10, #020604 75%);
text-shadow: 0 0 0.35em color-mix(in srgb, var(--ph) 70%, transparent);
box-shadow: inset 0 0 1.6em rgb(0 0 0 / 0.85);
animation: txt-bios-memory-test-flicker 0.12s steps(2) infinite;
}
/* scanlines and a soft glass highlight */
.txt-bios-memory-test-screen::after {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(80% 50% at 30% 0%, rgb(255 255 255 / 0.06), transparent 70%),
repeating-linear-gradient(rgb(0 0 0 / 0.35) 0 1px, transparent 1px 0.18em);
pointer-events: none;
}
.txt-bios-memory-test-screen p {
margin: 0;
white-space: pre;
}
.txt-bios-memory-test-dim { opacity: 0.6; }
.txt-bios-memory-test-mem {
counter-reset: txt-bios-memory-test-k var(--txt-bios-memory-test-k);
animation: txt-bios-memory-test-count var(--t) infinite;
}
.txt-bios-memory-test-mem::after {
content: counter(txt-bios-memory-test-k) "K ";
}
.txt-bios-memory-test-screen b {
font-weight: 700;
animation: txt-bios-memory-test-ok var(--t) step-end infinite;
}
.txt-bios-memory-test-screen .txt-bios-memory-test-l4 { animation: txt-bios-memory-test-l4 var(--t) step-end infinite; }
.txt-bios-memory-test-screen .txt-bios-memory-test-l5 { animation: txt-bios-memory-test-l5 var(--t) step-end infinite; }
.txt-bios-memory-test-cursor {
display: inline-block;
width: 0.6em;
height: 0.12em;
margin-left: 0.15em;
background: currentColor;
box-shadow: 0 0 0.3em currentColor;
animation: txt-bios-memory-test-blink 1s steps(1) infinite;
}
@keyframes txt-bios-memory-test-count {
0%, 4% { --txt-bios-memory-test-k: 0; animation-timing-function: steps(64, end); }
28%, 100% { --txt-bios-memory-test-k: 65536; }
}
@keyframes txt-bios-memory-test-ok {
0% { visibility: hidden; }
28.75% { visibility: visible; }
95%, 100% { visibility: hidden; }
}
@keyframes txt-bios-memory-test-l4 {
0% { visibility: hidden; }
36.25% { visibility: visible; }
95%, 100% { visibility: hidden; }
}
@keyframes txt-bios-memory-test-l5 {
0% { visibility: hidden; }
46.25% { visibility: visible; }
95%, 100% { visibility: hidden; }
}
@keyframes txt-bios-memory-test-blink {
50% { opacity: 0; }
}
@keyframes txt-bios-memory-test-flicker {
50% { opacity: 0.97; }
}
@media (prefers-reduced-motion: reduce) {
.txt-bios-memory-test, .txt-bios-memory-test *, .txt-bios-memory-test *::before, .txt-bios-memory-test *::after { animation: none !important; }
.txt-bios-memory-test-cursor { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.txt-bios-memory-test, .txt-bios-memory-test *, .txt-bios-memory-test::before, .txt-bios-memory-test::after, .txt-bios-memory-test *::before, .txt-bios-memory-test *::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.