简体   繁体   English

无法在 Angular 应用程序中为 PNotify 应用动画

[英]Unable to apply animation for PNotify in Angular app

I am using PNotify for alert message in angular app.我在 angular 应用程序中使用 PNotify 作为警报消息。 I have applied animation, but animation is not working.我已经应用了动画,但动画不起作用。

Below is the code that which I am using.下面是我正在使用的代码。

PNotify.notice({
          title: 'Animate.css Effect',
          text: 'Part Quantity is greater.',
          modules: {
            Animate: {
              animate: true,
              inClass: 'rotateInDownLeft',
              outClass: 'rotateOutUpRight'
            }
          }
        });

If you are using different modules apart from app.module.ts , include BrowserAnimationsModule in those modules also.如果您使用除app.module.ts之外的其他模块,请在这些模块中也包含BrowserAnimationsModule hope it will solve.希望它会解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM