Type/Text Reveal on page load

Anyone know how to do this interaction as the page loads? I thought I could do it by wrapping the text with spans, but it doesn’t seem like you can animate spans.

Here is what I’m trying to do: https://alexleiphart.com/


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

This is done with some custom javascript, but I found a nearly identical example here from this Stack Overflow thread. It should work out for you, just make sure you modify the section on line four to match the class you use in your project.


Thanks so much! This really helps.

In addition to what @mikeyevin said, you may want to look into GSAP - https://greensock.com/SplitText/

Really cool tool for text manipulation - a bit of a learning curve though.

1 Like