Flat isometric lettering rises off the floor into solid blocks, holds, then sinks back down. Twelve stacked copies move up the Z axis by their index, so the extrusion grows as one piece.
Also known as: isometric text css, 3d block letters animation, extruded isometric type.
<div class="txt-isometric-3d-text" aria-label="BLOCKS"><span class="txt-isometric-3d-text-floor" aria-hidden="true"><span style="--i: 0">BLOCKS</span><span style="--i: 1">BLOCKS</span><span style="--i: 2">BLOCKS</span><span style="--i: 3">BLOCKS</span><span style="--i: 4">BLOCKS</span><span style="--i: 5">BLOCKS</span><span style="--i: 6">BLOCKS</span><span style="--i: 7">BLOCKS</span><span style="--i: 8">BLOCKS</span><span style="--i: 9">BLOCKS</span><span style="--i: 10">BLOCKS</span><span style="--i: 11">BLOCKS</span></span></div>
.txt-isometric-3d-text {
--c: var(--txt-color, #3b82f6);
font-size: calc(var(--txt-size, 32px) * 1.5);
font-family: system-ui, sans-serif;
font-weight: 900;
line-height: 1.2;
display: inline-block;
letter-spacing: 0.04em;}
/* laid on the floor: tipped back, then turned 45 degrees */
.txt-isometric-3d-text-floor {
display: grid;
transform-style: preserve-3d;
transform: rotateX(55deg) rotateZ(-45deg);
}
.txt-isometric-3d-text-floor span {
grid-area: 1 / 1;
color: color-mix(in srgb, var(--c) 58%, #000);
animation: txt-isometric-3d-text-rise 4s infinite;
}
.txt-isometric-3d-text-floor span:last-child {
color: var(--c);
}
@keyframes txt-isometric-3d-text-rise {
0%, 14% { transform: translateZ(calc(var(--i) * 0.002em)); animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
40%, 72% { transform: translateZ(calc(var(--i) * 0.045em)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
100% { transform: translateZ(calc(var(--i) * 0.002em)); }
}
@media (prefers-reduced-motion: reduce) {
.txt-isometric-3d-text, .txt-isometric-3d-text *, .txt-isometric-3d-text::before, .txt-isometric-3d-text::after, .txt-isometric-3d-text *::before, .txt-isometric-3d-text *::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.