【问题标题】:Sweet alert toastre animation.. Fade InSweet alert toastre 动画.. 淡入
【发布时间】:2021-09-19 18:55:05
【问题描述】:

我正在使用 SweetAlert v10.14.1 作为带有代码的 toastr

<script>
const Toast = Swal.mixin({
      toast: true,
      position: 'top-right',
      showConfirmButton: false,
      timer: 5000,
    })
</script>

它工作正常..但是消息从顶部掉下来,白色背景..我想:

1- 淡入淡出

2- 将外观更改为引导主题

【问题讨论】:

    标签: sweetalert


    【解决方案1】:

    目前没有淡入效果。如果你想移除“boing”效果,你可以添加到你的道具中:

    Swal.fire({
        ... you other props...
        showClass: {
          popup: "", // it removes the 'boing' effect, the default value is 'swal2-show'
        },
    });
    

    【讨论】:

      猜你喜欢
      • 2021-10-10
      • 2014-01-20
      • 2012-12-18
      • 2017-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-11
      相关资源
      最近更新 更多