Skip to content
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

Flicking bug when on the threshold of element #104

Open
jesserosenfield opened this issue Mar 27, 2022 · 4 comments
Open

Flicking bug when on the threshold of element #104

jesserosenfield opened this issue Mar 27, 2022 · 4 comments

Comments

@jesserosenfield
Copy link

@mciastek

See screen recording– 
https://monosnap.com/file/WRf2pbikPIKi2ICqXhll71KfGYc8aj

When you're on the threshhold point of an element, there's a sort of infinite loop where it's adding and removing .sal-animate in rapid fire.

I believe these need to be throttled some how with some kind of a debounce function?

Thanks!

@jovyllebermudez
Copy link

jovyllebermudez commented Apr 9, 2022

That feels like the element in loop of trigger animation then the effect moves/expands the element enough to show on current screen then trigger the animation again and so on.

@jovyllebermudez
Copy link

Can you try using a different effect.

@jovyllebermudez
Copy link

I did tried, I used slide-down and instead of slide-up it wont flicker anymore.

@iwe-hi
Copy link

iwe-hi commented Sep 14, 2022

@jesserosenfield
Setting the rootMargin in the options to '25% 50% 0% 50%' did solve the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants