Variable weight wave

Open in editor
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #0b0c0e; color: #ecebe6; }
h1 { margin: 0; font: 100 clamp(3rem, 12vw, 8rem) Inter, system-ui, sans-serif; letter-spacing: -.04em; }
h1 span { display: inline-block; animation: weight 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes weight { 50% { font-weight: 900; color: #c8f560; } }
@media (prefers-reduced-motion: reduce) { h1 span { animation: none; font-weight: 600; } }

Usage

Each letter is a `<span>` with `--i` as its index. Uses Google Fonts (Inter variable).