-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
reveal() reset when using afterReveal and scrolling fast #511
Comments
Thanks for the report and reproduction @allaire I'm comparing changes in element state, and focusing on scrollreveal/src/instance/functions/initialize.js Lines 7 to 21 in 66f44ab
Which I just confirmed: I'm going to keep digging... |
Hi @jlmakes, awesome thanks for the detailed reply. Let me know if you need help to test a potential fix. Also, while testing ScrollReveal, I also experienced this issue: #231 I know it's an old one, but I decided to reply instead of opening a new issue. I wasn't able to create a reproduction in a JSFiddle environment. Any advice how I can help with #231 ? |
Any update on this? I'd like to be able to use the afterReveal option, but this bug is preventing me from implementing it. |
@simonkuran I actually don't remember where I landed on this. Using I'll take another look at this and see if there is something that can be improved for the current version of ScrollReveal. But for what it's worth, I am redesigning ScrollReveal 5 to offer more control to power users looking to coordinate their own reveals. |
How to duplicate: https://jsfiddle.net/9vcytj2b/
Scroll up and down, you'll see that the header text and the footer text keeps animating.
reset
is set tofalse
by default so this should not happen. Usingcleanup: true
make it works, but is not friendly when you usesync()
.It works as expected when you comment out the
afterReveal
callbacks: https://jsfiddle.net/jxcnb2wp/The fact that it works correctly without callbacks leave me thinking that there is a bug somewhere in there.
The text was updated successfully, but these errors were encountered: