All effectsPlay & loop

Liquid Chrome Type

液态铬字

Reflections slide along the letters, giving the type a polished, liquid-metal surface.

Play the demo to see reflections cross the letters

Where to use it

Give a brand wordmark or a launch headline a reflective finish. Choose thick letterforms that can hold several bands of light while preserving their silhouettes.

Practical example

A speaker launch page prints the model name in large chrome type. Reflections slide along the wide strokes as the product image stays still.

Also called

  • Metallic Type
  • Chrome Text

AI prompt

Render [headline] as Liquid Chrome Type. Make the letters look like polished liquid metal, with reflections that drift like light from the surrounding scene. Keep the word fully legible. Freeze the highlights for reduced motion.

Example code

Save the standalone HTML as a file and open it in your browser. It uses the same code as the preview.

View HTML
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Liquid Chrome Type</title>
  <style>
    :root {
      color-scheme: dark;
      --demo-bg: #171629;
      --demo-ink: #f8f5ff;
      --demo-accent: #b9a6ff;
      --demo-muted: #bfbbd3;
      font-family: system-ui, sans-serif;
      color: var(--demo-ink);
      background: var(--demo-bg);
    }

    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; min-width: 0; }
    button, input { font: inherit; }

    .demo {
      display: grid;
      place-items: center;
      align-content: center;
      min-height: 100vh;
      padding: 14px;
      overflow: hidden;
      background: radial-gradient(ellipse at 50% 24%, #28233f, var(--demo-bg) 78%);
    }

    .demo-button {
      border: 1px solid #ffffff3d;
      border-radius: 7px;
      background: #ffffff12;
      color: var(--demo-ink);
      padding: 6px 11px;
      font-size: 12px;
      cursor: pointer;
    }

    :focus-visible {
      outline: 2px solid var(--demo-accent);
      outline-offset: 3px;
    }

    .demo { position: relative; padding: 0; }
    .showcase { position: absolute; inset: 0; isolation: isolate; overflow: hidden; }
    .showcase .demo-button {
      position: absolute;
      z-index: 3;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 999px;
      background: #101026d9;
      color: #f1efff;
      white-space: nowrap;
    }
    .showcase :is(h1, p) { margin: 0; }
    .scene-copy {
      position: absolute;
      z-index: 1;
      inset: 0;
      display: grid;
      place-content: center;
      padding: 14px;
      text-align: center;
      pointer-events: none;
    }
    .scene-copy h1 {
      font-size: clamp(25px, 8vw, 62px);
      line-height: 1;
      letter-spacing: -.045em;
    }
    .showcase [data-motion] { animation-play-state: paused; }
    .showcase[data-playing] [data-motion] { animation-play-state: running; }
    @media (prefers-reduced-motion: reduce) {
      .showcase [data-motion] { animation: none; }
      .showcase [data-loop-toggle] { display: none; }
    }

    .showcase {
      background:
        radial-gradient(ellipse at 25% 97%, #24324f, transparent 56%),
        radial-gradient(ellipse at 75% 4%, #252640, transparent 57%), #0b0f20;
    }
    .chrome-orbits {
      position: absolute;
      inset: 23% 4%;
      border: 1px solid #b8c8f34a;
      border-radius: 50%;
      transform: rotate(-16deg);
    }
    .chrome-orbits::after {
      position: absolute;
      content: "";
      inset: -9% 4%;
      border: 1px solid #b8c8f33b;
      border-radius: 50%;
      transform: rotate(32deg);
    }
    .scene-copy h1.chrome-word {
      padding: .05em .12em .15em;
      color: #e0e6f3;
      font: italic 800 clamp(40px, 15.5vw, 110px) / .98 Georgia, serif;
      letter-spacing: -.095em;
      filter: drop-shadow(0 2px 1px #070c1a) drop-shadow(0 7px 13px #050815);
    }
    @supports (background-clip: text) {
      .scene-copy h1.chrome-word {
        color: transparent;
        -webkit-text-stroke: .55px #dbe9ff9c;
        background:
          linear-gradient(108deg, transparent 26%, #d9f5ffa8 41%, #fff 51%, transparent 65%) 27% center / 205% 100%,
          linear-gradient(166deg, #e3e8ff 15%, #5b6e95 27%, #e7f7ff 42%, #a3aec9 46%, #26344c 50%, #667aab 59%, #e6f0ff 67%, #ebd2f3 72%, #4a5b83 87%);
        background-clip: text;
        animation: chrome-reflection 4.8s ease-in-out infinite alternate;
      }
    }
    @keyframes chrome-reflection { to { background-position: 91% center, 0 0; } }
  </style>
</head>
<body>
  <main class="demo">
    <div class="showcase">
      <div class="chrome-orbits" aria-hidden="true"></div>
    <div class="scene-copy"><h1 class="chrome-word" data-motion>Chrome</h1></div>
      <button class="demo-button" type="button" data-loop-toggle data-testid="effect-demo-loop-toggle">Play demo</button>
    </div>
  </main>
  <script>
    const showcase = document.querySelector('.showcase');
    const toggle = showcase.querySelector('[data-loop-toggle]');
    const preference = matchMedia('(prefers-reduced-motion: reduce)');
    let playing = false;



    function syncPlayback() {
      if (preference.matches) playing = false;
      const active = playing && !document.hidden;
      showcase.toggleAttribute('data-playing', active);
      toggle.textContent = playing ? "Pause demo" : "Play demo";
      
    }

    toggle.addEventListener('click', () => {
      playing = !playing;
      syncPlayback();
    });
    preference.addEventListener('change', syncPlayback);
    document.addEventListener('visibilitychange', syncPlayback);
  </script>
</body>
</html>

Original example by UI Skills