Am using sweet alert plugin, Even after turning setting option animation : false also I am getting sweet alert opening animation(fade in- fade out like) is coming. How to disable it.sweet alertsweet alert
The original sweet alert plugin is unsupported, I suggest you using SweetAlert2 plugin.
Migration is simple, here's the migration guide: Migration from SweetAlert to SweetAlert2
Here's the example with SweetAlert2 and disabled animation:
Swal.fire({
icon: 'success',
title: 'SweetAlert2 modal without animation',
showClass: {
backdrop: 'swal2-noanimation', // disable backdrop animation
popup: '', // disable popup animation
icon: '' // disable icon animation
},
hideClass: {
popup: '', // disable popup fade-out animation
}
})
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With