How to animate text underlining with the Intersection Observer API

(This came up recently in a client project and I thought it was a fun (and fairly straightforward) example of the Intersection Observer JavaScript API.) So you want to underline some text when some event happens. Either on hover or when it enters the viewport. In the former case, it’s easy to do using plain […]

How to animate text underlining with the Intersection Observer API Read More »