-
Notifications
You must be signed in to change notification settings - Fork 7
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
Velocity options #21
Comments
A thing of beauty! Thank you !! From: Chet Corcos [mailto:notifications@github.com] like this? https://github.com/ccorcos/meteor-transitioner/blob/master/example/client/main.coffee#L94 — |
Hi Chet, Two issues:
Thanks again. |
|
Hi Chet, For (2): I’m transitioning from the root directory - Router.route('/',{name: 'login'}); to any other page and then, if the ‘logout’ button is pressed, returning to the login page (to the root directory). When returning to that login page, the email and password fields are corrupted. Art. From: Chet Corcos [mailto:notifications@github.com]
— |
I dont quite understand the issue. The form fields aren't being cleared? |
The form fields are being cleared, as is expected upon return to the login page. However, when I do a $(..).val() on those fields, the original values (from the first transition out) are still there and they persist so that I can't login as another user. In other words, the fields look to be cleared, but they're not, and they can't be reassigned. Hope my explanation doesn't add to the confusion :) |
not sure whats going on there honestly. soiunds like a classic browser quirk to me |
Happens in both Chrome and Firefox. I'll keep digging. Thanks. |
Could you elaborate on what you meant, above (this transitioner doesnt do well with transitioning between routes that have the same pattern. Is that whats going on? perhaps the two pages are /user/:id withdifferent ids? ) Not sure what you mean by patterns. Could you give a few sampe routes that are problematic? Thx. |
Hey Chet, I can see using velocity alone to fade in a new route, or even fade out of an old one. But how do you get the fades working in both directions simultaneously - given that the templates change abruptly? Do you use some sort of iron router hooks, or ?? |
i use tracker autoron on the iron router route name to set variables, and I use _uihooks to manage the animations. |
In your 'getting started' document:
Transitioner.transition({
fromRoute: 'fromRouteName',
toRoute: 'toRouteName',
velocityAnimation: {
in: animation,
out: animation
}
})
You say there are three options for animation, the second being: "passing an array of velocity arguments".
I can't get this to work. Could you show a specific example (specific syntax) for this? - for example, adjusting the duration of the transition.
Thanks much.
The text was updated successfully, but these errors were encountered: