Hey there @adrianmcli ! First off, awesome job on this little library. I'm loving it!
I did have one question that I'm hoping you can shed some light on:
I'm using the CharacterReveal in a Gatsby-powered site.
The animation (canPlay) is triggered via state, which is subsequently set through a useEffect after a short delay.
However, I'm noticing on my production server that there is a small "jump" where before the reveal element is built there is nothing visible, collapsing my page height briefly until react-reveal-text renders to the page:
Hey there @adrianmcli ! First off, awesome job on this little library. I'm loving it!
I did have one question that I'm hoping you can shed some light on:
CharacterReveal
in a Gatsby-powered site.canPlay
) is triggered via state, which is subsequently set through auseEffect
after a short delay.However, I'm noticing on my production server that there is a small "jump" where before the reveal element is built there is nothing visible, collapsing my page height briefly until
react-reveal-text
renders to the page:Here's a live version for you to preview as well: https://the-fold-web.netlify.app/
And here's my code for the
react-reveal-text
component:Let me know what you think, happy to provide more info if needed ✌️