I haven't found a way to control the transition process from my viewmodel, I doubt there is a way to do it.
Yet, the reason I asked was that I wanted to prevent Durandal from animating when navigating to the current page with different hash query string (changing this query string does trigger the navigation). The solution was to create a custom transition and to check whether the target view id is or isn't the same as the current view id. rely relied on
context.activeView.dataset.view === context.child.dataset.view;
where context.activeView
is the currently attached view and context.child
is the view that is about to be bound. Then, if these ids are different, I trigger the animation and if not, I simply hide context.activeView
and show the other.
That's it for this case