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

white space between frames when starting new transition while first is still running #50

Open
thomashandorf opened this issue Jan 5, 2017 · 2 comments

Comments

@thomashandorf
Copy link
Member

see example.zip

i think i know why there is sometimes some white between the frames. In the above example click the right arrow and when the animation is still in progress, click on the left arrow. there will be a white area visible. this is because with the last click, the frame is positioned outside the screen so that it can come in from the left. I think in that case, the transition should not start from position (0,0) but rather from the current location of the frame.

also when your layer only has 2 frames (it is easier to explaine like this). you click to the left and during the transition you click again to the left? the exiting frame will disapaire and will be positoned at the right to come in from the right.

I think we should have some sort of mechanisme to combine or que the different transitions. Or know if a specific frame is still doing a transition.

This is also probably the reason why the scrolling sometimes feels jumpy (i think)

@thomashandorf
Copy link
Member Author

example.zip

@thomashandorf
Copy link
Member Author

i looked at the example. It shows it quite good. the actual reason is that the transition for the middle frame is restarted, while the transition for the first frame is continuing. I think the default transition as an ease-in-ease-out and this causes the little gap. the middle frame is actually not repositioned i think. it startes at the position it currently is.

i don’t know how we can fix this right now. we would need to calculate a very complicated b-spline function for the restarted transition of the middle frame. But that’s overkill. another option may be to restart also the transition of the first frame. Then we wouldn’t have the gap but we still would have a temporary slow down. I’ll add a bug report, but i don’t think we should fix this right now.

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

No branches or pull requests

1 participant