Angular Animations doesn't works in IOS


Hi everyone
Wich would be the best practice to add web-animations to ionic 3 project? this because AngularAnimations does not works in Safary


I solved with:

i added src/app/polyfills.ts

import 'web-animations-js/web-animations.min';

In main.ts

import './polyfills';


i implemeted angularanimation successfullly in android, and when i built for ios animations are not working.
is it the problem with angularanimations ?


Thank you! This solved the problem for me as well. Other advice I had seen just said to install web-animations-js via NPM:

npm install web-animations-js --save

However, that didn’t fix the issue until I found your solution!

  1. I manually created a polyfills.ts file and added the following import statement to it:

import ‘web-animations-js/web-animations.min’;

  1. Then I added the import statement to main.ts.

Thanks for contributing your solution @jhdezcruz