Hey guys, I’m currently using ionic to build a todo calender app, which has pickadate plugin as a module dependency. The slidebox animation freeeze in the middle a little bit every time I try to slide left or right. I guess perhaps it because the function executes immediately after slide change but the animation effect is still in process.
Just wondering if there a away to fire a function onlyif the slidebox animation has completed. In other words, any delegation method like "$ionicSlideBoxDelegation.animationCompleted().then(dothis());
hi mhartington,
thank you for your reply. I was using on-slide-changed in the first place during my devlopment, and realized that most of the time the on-slide-changed listener fires immediately after when my finger goes off the screen, where the animation still running.
When angular try to re-render the dom while the animation is still running, there is a tiny bit freeze on that animation process.
My idea is to put the function execute after the animation completed so that there wont be any freeze on the screen.
Any idea how I can listen for the animation to be completed?
Thank you.
I notice the same bahavior.
I need to achieve dynamic slide, so basically each time a slide is changed, I need to update the prev or next slide.
It’s very smooth in my desktop browser, but when I try it in Android 4.4, the animation is not so smooth.
I think it’s because when doing the slide animation, my callback function hooked on on-slide-changed is also executing.
If I add some timeout in the callback function, the animation will become smooth. But the timeout interval is hard to choose, is there such animation complete event I can leverage? Thanks.