Banded metallic gold letters with a warm sheen that rolls across every few seconds. Fixed gold stops rather than your accent, plus a dark bronze drop shadow so it reads on light pages.
Also known as: gold text css, metallic gold text, gold shine text animation.
<div class="txt-gold-text-effect">Premium</div>
.txt-gold-text-effect {
--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-family: Georgia, "Times New Roman", serif;
letter-spacing: 0.03em;
background:
linear-gradient(115deg, transparent 38%, rgb(255 250 225 / 0.9) 50%, transparent 62%) 0 0 / 250% 100% no-repeat,
linear-gradient(180deg, #fef3c7 0%, #f5c542 22%, #b7791f 45%, #fde68a 53%, #d69e2e 70%, #92600e 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0.035em 0 #6b3f0a);
animation: txt-gold-text-effect-sheen 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;}
@keyframes txt-gold-text-effect-sheen {
0% { background-position: 150% 0, 0 0; }
55%, 100% { background-position: -50% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
.txt-gold-text-effect, .txt-gold-text-effect *, .txt-gold-text-effect::before, .txt-gold-text-effect::after, .txt-gold-text-effect *::before, .txt-gold-text-effect *::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.