Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

Ion-toast custom position exit animation over ion-tab

$
0
0

When I have a toast:

async presentSetsToast() {
    const toast = await this.toastController.create({
      message: `All sets completed.`,
      cssClass: 'toast-class',
      duration: 3000,
      color: 'dark'
    });
    await toast.present();
  }

with the cssClass:

.toast-class {
  font-size: large;
  transform: translateY(-50px);
  text-align: center;
}

where the translateY moves the toast above the ion-tab bar as seen in the video, the animation is as expected when I do ionic serve on localhost - the tab bar appears and disappears beneath the tab bar. However when I deploy it and open it on my iPhone’s safari/serve it on my iPhone using Capacitor, the toast goes over the tab bar and the exit animation is buggy.

ezgif-2-363e43abd83f

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>