A band of light sweeps through the word 'Thinking…', the status line every AI chat app shows while a model is working. Text stays selectable and screen-reader friendly.
Also known as: ChatGPT thinking animation, shimmer text, streaming response indicator.
<div class="ldr-ai-shimmer-text" role="status">Thinking…</div>
.ldr-ai-shimmer-text {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
font: 500 calc(var(--s) / 2.4) system-ui, sans-serif;
background: linear-gradient(90deg, color-mix(in srgb, var(--ldr-color, #3b82f6) 35%, transparent) 0%, var(--c) 50%, color-mix(in srgb, var(--ldr-color, #3b82f6) 35%, transparent) 100%);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
animation: ldr-ai-shimmer-text-sweep 1.6s linear infinite;
}
@keyframes ldr-ai-shimmer-text-sweep {
from { background-position: 100% 0; }
to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
.ldr-ai-shimmer-text, .ldr-ai-shimmer-text *, .ldr-ai-shimmer-text::before, .ldr-ai-shimmer-text::after {
animation-duration: 3s;
}
}--ldr-color on the element or a parent.
Currently previewing #3b82f6.--ldr-size. Every dimension in the snippet is
derived from it. Currently previewing 64px.animation shorthand.
Delays on the children are relative, so they keep their rhythm.role="status" and an
aria-label so screen readers announce the wait. The reduced-motion rule
at the end slows the animation for users who asked for less motion.