-
Notifications
You must be signed in to change notification settings - Fork 179
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
Once:false #3
Comments
Thanks for catching this bug! It looks like wrong |
After trying out some fixes it seems you have to offset the threshold by 20% to make up for the translateY, not 100% working yet though. |
I did a test and it looks like there is a problem with translation itself. Basically, when element is shifted by 20% of it's size, |
@mciastek any updates on how to solve this? |
I checked this bug and I need to find a way how to resolve it without adding too much complexity to Here's a workaround for this problem. As Intersection Observer detects if specific amount of pixels are present in viewport, every time you translate the element, it's pixels are also translated. So to bypass this behaviour you need to wrap this element in a wrapper, which will be detected by I will try to come up with solution, but I'm open to any ideas. |
When using once:false with slide-up slide-down it can cause the image to go in an infinite loop because the class keeps getting removed and added again since the image is on the border of the screen.
Part that causes the issue.
EDIT: removed image cause it showed nothing decent. Great little library btw!
EDIT EDIT: i meant ONCE:FALSE !!!
The text was updated successfully, but these errors were encountered: