title: ionic3 BrowserAnimationModule
body: <p>i try to import BrowserAnimaionModule in my project </p>
  
  <p>1- i install npm install web-animations-js @angular/animations@4.0.0 --save</p>
  
  <p>2- i import polyfill   in main.ts</p>
  
  <p>import 'web-animations-js/web-animations.min';</p>
  
  <p>3- and when i try to add BrowserAnimationModule in app.module.ts into imports[]</p>
  
  <p>THIS is js code for the login form</p>
  
  <pre><code> import { Component, trigger, state, style, transition, animate, keyframes } from '@angular/core';
    ;
       
      @Component({
        selector: 'page-login',
        templateUrl: 'login-page.html',
       
        animations: [
       
          //For the logo
          trigger('flyInBottomSlow', [
            state('in', style({
              transform: 'translate3d(0,0,0)'
            })),
            transition('void =&gt; *', [
              style({transform: 'translate3d(0,2000px,0'}),
              animate('2000ms ease-in-out')
            ])
          ]),
       
          //For the background detail
          trigger('flyInBottomFast', [
            state('in', style({
              transform: 'translate3d(0,0,0)'
            })),
            transition('void =&gt; *', [
              style({transform: 'translate3d(0,2000px,0)'}),
              animate('1000ms ease-in-out')
            ])
          ]),
       
          //For the login form
          trigger('bounceInBottom', [
            state('in', style({
              transform: 'translate3d(0,0,0)'
            })),
            transition('void =&gt; *', [
              animate('2000ms 200ms ease-in', keyframes([
                style({transform: 'translate3d(0,2000px,0)', offset: 0}),
                style({transform: 'translate3d(0,-20px,0)', offset: 0.9}),
                style({transform: 'translate3d(0,0,0)', offset: 1}) 
              ]))
            ])
          ]),
       
              })
          
      }
  </code></pre>
  
  <p>i got this error
  Object prototype may only be an Object or null: undefined</p>