karma icon indicating copy to clipboard operation
karma copied to clipboard

Transitions

Open quinkennedy opened this issue 8 years ago • 2 comments

Is there a way to define smooth transitions between views? For instance, when using router.Goto() I'd like the new view to slide in from the right, and the old view to slide off the left.

quinkennedy avatar Apr 28 '17 13:04 quinkennedy

@quinkennedy The current mechanism instantiates the new prefab and destroys the old view object. The framework doesn't make assumptions as where the views are located so implementing this in a generic way is not easy. That said, as with everything, you could implement it yourself.

cgarciae avatar Apr 28 '17 20:04 cgarciae

Is the Router and Middleware included meant as a bare-bones example of how those items work, and the expectation is that extra functionality should be handled by writing custom Router/Middleware?

I noticed that the current Router also never pushes views to the history. Should I add that and submit a pull request, or is it expected that users will implement their own routers/middleware to add these kinds of functionality?

quinkennedy avatar Apr 28 '17 21:04 quinkennedy