-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Concurrent enter/leave transitions #7
Comments
@zewa666 Can you look into this? It's an important scenario to cover. |
@jus101 sure that works out of the box. If you look at the css classes for the section in the navigation app example https://github.com/aurelia/skeleton-navigation/blob/master/styles/styles.css#L49-L52, all you'd have to do is define the same one for the |
Hmm - I think that's what I have tried, but what I see is the outgoing view animate out; the router-vew slot is then replaced with the incoming view, which is then animated in. I'm guessing that to get the desired effect, both views would need to remain in the DOM until both of their animations are complete? |
oh ok ... sry didn't get that you'd really like to have both of them "at the same time". hmm yeah that one could be a bit tricky, as you mentioned they'd need to be both present in DOM in order to work. |
Yeah, sorry - I did a quick search and found this example: So maybe, a question for @EisenbergEffect as to where to go with this - might require changes deeper into the other framework components? |
@zewa666 This is why the router-view specifically uses the ViewSlot.swap method. I believe an update to that implementation, in terms of how it interacts with the animation abstraction, is needed to fully enable this. Not that this is also how the compose element works. So, fixing the ViewSlot.swap and corresponding animation apis, will solve both cases. |
I came across this a few days ago https://github.com/Rich-Harris/ramjet
|
+1 on concurrent swaps. I want my website to look like a prezi :) |
I'm running into the same issue. If you want me to take a look at this, please point me in the right direction. |
@davismj yes please, help would be greatly appreciated. Essentially what we need is that at one moment in time both pages, the old and the new one, are together in the DOM and respect the animators promises before disappearing. This has to be done in the ViewSlot's swap method. https://github.com/aurelia/templating/blob/master/src/view-slot.js#L178 It sounds like a small change, but whatever I tried failed sadly :( |
anyone who have implement this effect when page change like http://cases.azoft.com/iphonestyle-web-page-transitions-angularjs-css-demo/#/ |
This is supported now in the router-view and we'll add it to the compose element as well. See the latest release blog post for more information. |
@EisenbergEffect I'm new to Aurelia and I'm looking on how to add such effect to my app, but I was unable to found the blog post you mentioned above. Can you please provide me the link to it or to any other guide on how to achieve simultaneous outgoing/ingoing animations? |
@Tinadim I believe it's http://blog.durandal.io/2015/11/10/aurelia-pre-beta-release/ |
@joelcox Can you describe that briefely for @z-brooks ? |
@EisenbergEffect did I link the wrong blog post 😖? @Tinadim was asking which blog post you meant in the earlier comment. |
|
Am wondering if it would be possible to do concurrent transitions between the outgoing and incoming views?
Basically, the outgoing view is animated out while at the same time the incoming view is animated in.
Typically, if navigating down a hierarchy of views, the parent would slide out to the left, while the target child would slide in from the right.
The text was updated successfully, but these errors were encountered: