jlmakes / jlmakes/scrollreveal

reveal() reset when using afterReveal and scrolling fast

Open
#511 4 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
22.5k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

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 to `false` by default so this should not happen. Using `cleanup: true` make it works, but is not friendly when you use `sync()`.

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.