CSS still gives us no way to select individual characters. A ::nth-letter() selector remains hypothetical, and ::first-letter only reaches the first glyph of a box. Within that constraint, letter-spacing is useful for text reveals: positive values add space to the right of each glyph in a left-to-right writing mode, while negative values shrink the glyph box until letters overlap and then reverse direction.

The property takes length units as well as a percentage relative to font size. It is animatable, and its negative range makes it a natural starting point for reveal effects.

Reveal begin with overlapping letters

A simple approach begins with the characters fully overlapped, with color set to transparent so the text is visually hidden.

label {
  letter-spacing: -1ch;
  color: transparent;
  /* etc. */
}

A checked checkbox then animates letter-spacing to a positive value and moves color to a visible one:

li:nth-of-type(2) label {
  text-align: center;
}
li:nth-of-type(3) label {
  text-align: right;
}
input:checked + label {
  letter-spacing: 0ch;
  color: black;
  transition: letter-spacing 0.6s, color 0.4s;
}

The labels transition from negative letter-spacing to normal spacing while color changes to black. Because the second and third labels are center- and right-aligned, overlapping letters collect at those alignment positions and separate from them as spacing grows.

The ch unit is a relative length equal to the width of the zero (0) glyph.

Sliding one label out while another unfolds

A checkbox label can also be toggled as an interactive UI touch.

<!-- Simplified for brevity; additional accessibility considerations -->
<input type="checkbox" id="cb">
<label for="cb">
  <span>Join the global club</span>
  <span>You've begun your journey!</span>
</label>
label {
  overflow: clip;
  /* etc. */
}

span {
  /* The first label */
  &:nth-of-type(1) {
    /* Default spacing: letters are fully visible */
    letter-spacing: 0ch;
    /* When the checkbox is checked, target this text */
    :checked + * & {
      /* collapse letters on top of each other, hiding them */
      letter-spacing: -2ch;
      text-indent: -1.5ch;
      /* Use a "bouncy" cubic-bezier for spacing */
      transition: 0.4s letter-spacing cubic-bezier(.8, -.5, .2, 1.4), 
                  0.1s text-indent;
    }
  }
  
  /* The second label */
  &:nth-of-type(2) { 
    /* Initially collapsed (letters overlap) */
    letter-spacing: -1ch;
    color: transparent;
    /* When the checkbox is checked, target this text */
    :checked + * & {
      /* Returns to normal spacing */
      letter-spacing: 0ch;
      color: black;
      /* Slightly delay the appearance so it starts after the first text begins to hide */
      transition:
        0.4s letter-spacing cubic-bezier(.8, -.5, .2, 1.4) 0.3s, 
        0.8s color 0.4s;
    }
  }
}

On check, the first <span> receives letter-spacing: -2ch and text-indent: -1.5ch, sliding it out of its container, with overflow: clip hiding it completely. Meanwhile, the second <span> goes from -1ch to 0ch. The overlapped text is hidden at -1ch through a transparent color that turns black when the checkbox is checked.

Acronym that opens into full words

Combining ::first-letter and ::first-line with letter-spacing yields an acronym that reveals its full text on hover.

<!-- Simplified for brevity -->
<p id="acronym">
  <span class="words">United</span>
  <span class="words">Nations</span>
  <span class="words">International</span>
  <span class="words">Children's</span>
  <span class="words">Emergency</span>
  <span class="words">Fund</span>
</p>
.words {
  letter-spacing: -1ch;
  color: transparent;
  /* etc. */

  &::first-letter {
    color: black;
  }

  figure:hover + #acronym & {
    letter-spacing: 0ch;
    color: black;
    transition: letter-spacing 0.4s cubic-bezier(.8, -.5, .2, 1.4) /* etc. */;
  }
}

::first-letter gets color: black, while the rest of each word is stacked beneath it with letter-spacing: -1ch and color: transparent. Hovering the image selects the whole text: the letter-spacing of each word goes to 0ch and color: black applies, exposing the remainder of the words.

Building without ::nth-letter

A real ::nth-letter selector would serve text effects like these well. For now, the combination of letter-spacing, ::first-letter, and ::first-line covers some of the same ground within existing constraints.