diaporama.next() skips transition #36
Comments
The way it is currently designed and implemented makes it hard to make such jump transition possible. The current implementation design is that the slideshow is statically defined in a timeline. The rendering of a frame at time To illustrate that, here is a screenshot (of In that example, moving from second slide to third slide is implemented by setting the time to Such implementation design make things lot more easier (for instance running the diaporama is just about setting the Now going back to your concern, I think you got a point that you expect the transition to occurs when leaving a slide programmatically, now I don't know yet how to address this problem (if you got an idea?) with my current implementation. tagging this issue difficulty:high but pretty important use-case. |
I have thought a bit more about the problem and it is a bit more clear on how I could address it. I guess I could introduce this: I'm also thinking I could allow in the API to define your own transitionNext to use (to pass to |
For .prev() or .next() a plausible solution could be to simply speed up "time" - that way ken burns effect would still play our, but wont take as long as it normally would for my case |
that is likely to create weird sudden acceleration I think. but maybe I should give a try. |
Easing might play nicely here, some ease-in + e^N acceleration function should be fine |
yeah that could work. and I guess it is not that hard to implement (the |
Good news, I've implemented the "speed up" as you suggested. There is a fresh Regards, |
to summary: I've released:
http://gre.gitbooks.io/diaporama/content/docs/api.html#methods you can now optionally give a duration to next, prev, jump |
I like it, much better than a simple jump. Great work! |
Thanks to you for the simple solution you end up with :-)
|
I don't know if it's intended or not, but programatically switching the slide skips animation and instantly turns on the next slide. Is there any way to make sure transition animation is applied before next slide is turned on?
The text was updated successfully, but these errors were encountered: