title: How to change the animation of transition from one AbilitySlice to another AbilitySlice in HarmonyOS?
body: <p>In Android, we can add the following statement to the <code>onBackPressed()</code> function to modify the animation of going back to the MainActivity from some other activity.</p>
  <pre><code>overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
  </code></pre>
  <p>How can we do so in HarmonyOS? What different animations are available in HarmonyOS?</p>