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

Animation problem in mobile #64

Open
romanmuska opened this issue Oct 24, 2023 · 4 comments
Open

Animation problem in mobile #64

romanmuska opened this issue Oct 24, 2023 · 4 comments

Comments

@romanmuska
Copy link

romanmuska commented Oct 24, 2023

Hi,

we noticed a problem of flip animation in mobile devices. When we open it on iOS or any android device we see that sometimes just whole number is revealed and sometimes it flip nicely step by step to final value. Can you please check where can be a problem or how to fix it? ... It is doing also with your preset demo. The only change in our code is that we waiting to intersect window flipper after scroll and then set it on that value. But it also do that when we just put there the preset demo code, so i don't think that it is cause by that observer. Desktop is fine on all browsers and it works perfecly. I also attached video showing the problem. This problem occurs randomly.

RPReplay_Final1698152262.mp4

Thanks for you help.

@rikschennink
Copy link
Collaborator

Does this happen on https://pqina.nl/flip?

@romanmuska
Copy link
Author

No it doesn't because it is already in a viewport. This happens to us only when we scroll down and set value when element is visible. If you need i can send you page and also code to simulate it.

@rikschennink
Copy link
Collaborator

If you can reproduce it in a codepen or on stackblitz I'm happy to take a look.

@romanmuska
Copy link
Author

romanmuska commented Nov 20, 2023

Hi i cannot simulate it on stackblitz because they have some integrated light browser which is opened in different way on mobile but i put the simulated version on https://flip.rootscope.co where you can try it (please preview it on mobile because error happens only there) and don't forget to scroll page down, because flipper is under init viewport. I send you also the code to simulate it: https://stackblitz.com/edit/js-h36mqc

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

2 participants