Reputation: 4898
Currently Alertify drops down the alert so that it bounces and comes back up a bit. Is there a way to just have it slide down?
Thanks
Upvotes: 1
Views: 442
Reputation: 4898
No one had any answers here so I finally dug it out myself.
Alertify uses CSS3 transitions to show and hide its dialogs. As soon as the class is assigned the dialog bounces onto the screen:
elDialog.className = "alertify alertify-" + type + " " + css;
The classes are defined in alertify.core.css:
To get rid of the bounce I just replaced the cubic-bezier definitions:
Upvotes: 2