Overview
Type the command with steps(); spawn output lines that push prior lines up, anchored to a baseline.
Build
- 01
Command types with CSS steps() on ch-width text.
- 02
Each output line is born at the baseline.
- 03
Prior lines translate up by line-height.
- 04
Caret blinks, then vanishes on the last line.
.line-n { animation: stack-n 400ms both; }
@keyframes stack-2 { to { transform: translateY(calc(-1 * var(--lh))) } }Example source React / TSX
examples/monospace-terminal-stack.tsx · Uses the catalog’s shared composition helpers.
Loading source…