-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Disappears After Page Reroute #4
Comments
Encountered the similar issue as well. <div data-sal-*="..." ...>
...
</div> will disappear and does not reveal upon scroll. That is, those elements seems either not initialized or were initialized in the bad state. Any guidance on how to resolve this would be much appreciated! |
I had the same problem and I just added the dependency "sal.js" to my page and started the initialization with a useEffect.
|
Hi @nlenaerts could you help elaborate how |
This solution worked for me! Thanks! |
I am resolving gatsby-plugin-scroll-reveal in my gatsby-config.js file, I have it installed in my node_modules, and it is working initially. The issue I'm encountering is that when I go to an interior page, then back to the home page, where I have text animating up using the plugin, the text is gone and I can't find anything in the source that would be causing it to do that.
Here is my
hero.js
component:One other strange thing: any time I set
data-sal-delay
value to above 1000, it runs at the default delay instead of the set delay time.Any help is very much appreciated.
Thank you for building this!
The text was updated successfully, but these errors were encountered: