sweetalert2 icon indicating copy to clipboard operation
sweetalert2 copied to clipboard

You should change your default animation behavior. Its to much fancy🙏

Open ghost opened this issue 2 years ago • 5 comments

Thank you.

ghost avatar Jan 17 '23 13:01 ghost

I don't know about "fancy", but I have to agree that this is not the best choice of animation for the default. To me it's more of a comical, cartoonish effect; I can't help but hear the sound "BOOOIIIOIIIOIIING!" in my head every time a modal pops up. :)

I expect anyone developing a serious website will have to change this setting, as I have.

DrPeeps avatar Mar 03 '23 17:03 DrPeeps

@DrPeeps can you share the change you made? Not sure the criteria is "serious website" but it might be useful to be able to adjust the animation.

kenara avatar Mar 04 '23 11:03 kenara

I kinda agree with you guys, any suggestions are welcome 🙌

limonte avatar Mar 04 '23 15:03 limonte

Not sure the criteria is "serious website"

Oh, definitely not! I realize some websites are more fun in theme than others and maybe the current default is more suitable for most projects. I don't know. My own feeling is that something more "bland" would be a safer default. People can always set it to the elastic style if they want.

I changed my default modals to the following for now, and I think it looks nice:

showClass: {popup: "animate__animated animate__fadeIn animate__faster"}

DrPeeps avatar Mar 05 '23 01:03 DrPeeps

I kinda agree with you guys, any suggestions are welcome 🙌

Maybe try a plain 0 to 100 animation like HeadlessUI does on Modals with Tailwind

stathis1998 avatar Jan 14 '24 11:01 stathis1998