# Angular Animations doesn't works in IOS

**URL:** <https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519>\
**Category:** ionic-v3\
**Created:** [June 8, 2017, 4:42pm UTC](https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519 "2017-06-08T16:42:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhdezcruz](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jhdezcruz](https://forum.ionicframework.com/u/jhdezcruz)\
**Post date:** [June 8, 2017, 4:42pm UTC](https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519/1 "2017-06-08T16:42:36Z")

</div>

Hi everyone  
Wich would be the best practice to add [web-animations](https://www.npmjs.com/package/web-animations-js) to ionic 3 project? this because [AngularAnimations](https://angular.io/docs/ts/latest/guide/animations.html) does not works in Safary  
thanks

---

<div class="post-metadata">

**Author:** ![jhdezcruz](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jhdezcruz](https://forum.ionicframework.com/u/jhdezcruz)\
**Post date:** [June 8, 2017, 8:39pm UTC](https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519/2 "2017-06-08T20:39:22Z")

</div>

I solved with:

i added src/app/polyfills.ts

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

```

In main.ts

```auto
import './polyfills';

```

---

<div class="post-metadata">

**Author:** ![mathewk](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mathewk](https://forum.ionicframework.com/u/mathewk)\
**Post date:** [June 21, 2018, 6:01am UTC](https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519/3 "2018-06-21T06:01:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![medialnk](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@medialnk](https://forum.ionicframework.com/u/medialnk)\
**Post date:** [November 24, 2018, 9:15am UTC](https://forum.ionicframework.com/t/angular-animations-doesnt-works-in-ios/93519/4 "2018-11-24T09:15:00Z")

</div>

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
