NASA’s new dark energy space telescope can also detect killer asteroids
technologyreview.com·2h ago
TL;DR
CSS lacks a pseudo-element for styling individual letters, limiting text animation possibilities. Developers can achieve revealing text effects by combining existing CSS features: letter-spacing (space between characters), ::first-word (style first word), and ::first-line (style first line).
✦ Why It Matters
Engineers can create text reveal animations today using existing CSS features without waiting for new specifications.
Key Takeaways
How It Works
By setting letter-spacing to a negative value, characters can overlap, making them visually hidden. When transitioning to a positive value, the letters separate, revealing the text.
This can be combined with color changes to enhance the effect.
Related