Detect end of ion-nav-bar animation without $timeout

I wanna know if it is possible to detect the end of the header bar navigation ?

The $timeout trick exposed here is not enough for my case (I have one side-menu toggle and a classic navigation, their duration aren’t equal, which cause graphical bugs for one of them, based on the timeout duration.)

I saw in your github’s repositories that you’re currently working on a javascript animation engine ( https://github.com/driftyco/collide ), which seems to handle callback on animations.

Moreover I saw that it was added to the latest beta (beta11) on that commit : https://github.com/driftyco/ionic/commit/d4b9ed44fa613893f955f2d91aac246ff34d81cb

Did you plan to expose an API / service to hook into lifecycle of header bar transition ?

Meanwhile, is it possible to hack this with css3 transition events …?

Thanks.

1 Like