Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic v2 - How to disable popover animation

I would like to disable the animation that open a Popover starting from Top Left corner. Instead I want it opens the same way it close when I do "dismiss", a sort of a FadeOut of the entire element.

I am not able to do this. It is not clear if I can pass any options to the "create" method.

Popover official doc

Thanks a lot.

like image 244
Flavio Spugna Avatar asked Oct 02 '17 16:10

Flavio Spugna


1 Answers

You can disable animation by NavOptions

let popover = this.popoverCtrl.create("YourPage");
popover.present({animate: false});

You can also change the type of animation. See the doc for more information.

like image 107
Duannx Avatar answered Sep 23 '22 03:09

Duannx