Help with vertical text slider

Hi,

I have seen this headline including a vertical text slider in the hero heading. How would I do this? So far I havent found any templates in the community. I have built. a heading in my hero and then have a span for the highlighted word, but I cant get an animation to work just on a single span class.