title: Ionic 4 Animation object
body: <p>I want to animate my <code>IonModal</code> enter and leave and There are 
  <code>enterAnimation</code> and <code>leaveAnimation</code> properties that get Animation object. </p>
  
  <p><strong>I use ionic/react.</strong> So I the Animation import even does not work! This exception came out: <code>Attempted import error: 'Animation' is not exported from '@ionic/core'.</code></p>
  
  <p>The only example I saw with this object is this : 
  <a href="https://www.joshmorony.com/create-a-custom-modal-page-transition-animation-in-ionic/" rel="nofollow noreferrer">https://www.joshmorony.com/create-a-custom-modal-page-transition-animation-in-ionic/</a></p>
  
  <p>I just want to change the side that the modal is entering/leaving from, and this code is not so predictable for it. </p>
  
  <p>Some good examples how to use it with react?</p>