Glowing molten letters with dark crust drifting across them in two layers, so cracks of bright orange open and close. Crust patches are tiled radial gradients moving in opposite directions.
Also known as: molten text css, magma text effect, lava lamp text.
<div class="txt-lava-text">MOLTEN</div>
.txt-lava-text {
--c: var(--txt-color, #3b82f6);
font-size: var(--txt-size, 32px);
font-family: system-ui, sans-serif;
font-weight: 700;
line-height: 1.2;
font-weight: 900;
letter-spacing: 0.05em;
background:
radial-gradient(ellipse 48% 42% at 30% 40%, rgb(69 10 10 / 0.92), transparent 72%) 0 0 / 1.4em 0.9em,
radial-gradient(ellipse 42% 48% at 70% 60%, rgb(127 29 29 / 0.88), transparent 72%) 0.5em 0.3em / 1.1em 0.8em,
linear-gradient(180deg, #fde047 0%, #f97316 45%, #dc2626 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0 0.08em rgb(249 115 22 / 0.55));
animation: txt-lava-text-flow 6s linear infinite;}
@keyframes txt-lava-text-flow {
to { background-position: 1.4em 0, -0.6em 0.3em, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
.txt-lava-text, .txt-lava-text *, .txt-lava-text::before, .txt-lava-text::after, .txt-lava-text *::before, .txt-lava-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.