8000 Flicking bug when on the threshold of element · Issue #104 · mciastek/sal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Flicking bug when on the threshold of element #104

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

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!

@jovylle
Copy link
jovylle 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.

@jovylle
Copy link
jovylle commented Apr 9, 2022

Can you try using a different effect.

@jovylle
Copy link
jovylle commented Apr 9, 2022

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
0