Faceted, icy blue letters with sharp white refractions that slide across as if the block were turning in the light. Hard color stops make the facets; a dark edge keeps them crisp.
Also known as: frozen text css, icy text effect, frost text.
<div class="txt-ice-text">FREEZE</div>
.txt-ice-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.06em;
background:
linear-gradient(115deg,
transparent 0 30%, rgb(255 255 255 / 0.65) 30% 33%, transparent 33% 60%,
rgb(255 255 255 / 0.45) 60% 61.5%, transparent 61.5%) 0 0 / 200% 100%,
linear-gradient(160deg,
#bae6fd 0 28%, #7dd3fc 28% 50%, #38bdf8 50% 72%, #0284c7 72%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: max(1px, 0.015em) #0c4a6e;
animation: txt-ice-text-refract 3.5s ease-in-out infinite alternate;}
@keyframes txt-ice-text-refract {
from { background-position: 100% 0, 0 0; }
to { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
.txt-ice-text, .txt-ice-text *, .txt-ice-text::before, .txt-ice-text::after, .txt-ice-text *::before, .txt-ice-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.