alertify.js
alertify.js copied to clipboard
Since alertify is no longer maintained, consider jAlert
https://github.com/VersatilityWerks/jAlert
I just checked jAlert, but it doesn't replace alertify.success
Also the animations are too heavy/overwhelming
I still use alertify for it's simple and lightweight alertify messages, like the .log and the .success
I'll be adding growl style alerts in the future.
You can use any animation you want including a simple fade. Animate.css is used.
I used to use Alertify for growl style alerts and want to add this to jAlert soon!
Just updated the default to fadeInUp and fadeOutDown because I agree, they were a bit much.
Thanks, I think many people might make the switch if the growl style alerts are a satisfying replacement for the alertify ones
The alertify ones also have severe performance issues, each frame of the animation triggers a full page reflaw/redraw, I manually fixed the issue by trial and error, yet it would be nice to find an alternative that is actively developed
I'll post here again once it's been added. Do you have any specific requests on how they should work? I'll take your suggestions into consideration.
I think 2 types would be great:
- Android Toast styles notifications, simple, lightweight, hides on click or fades away on it's own
- Emulate/Replicate the alertify's sliding alerts 1:1 + Solve the issues
At one point, I was experiencing browser performance issues, that's when I realized the excessive redraw problem I mentioned with alertify, the bounding box needs to be dynamic to allow multiple/stacking alertify messages, yet that flexibility ties the drawing to the entire page, causing the performance issues - they can easily be observed with Chrome/Firefox's Inspectors - Firefox can't handle it
Limiting the alertify bounding box solved the issue for me, but my alertify's no longer stack, a new one hides the older one
Edit: You can also gather a following more easily if you emulate the Android toasts, as I'm sure there are a lot of android developers that seek them on web (it might already exist on web, I didn't research :)
Awesome, thanks for the input!
@kaansoral I'm curious about how you fixed the full-page reflaw/redraw issue on your end. Any chance you could share a code snippet?
You can inspect it on https://geobird.com
It wasn't a perfect solution, but it was an easy fix, at the time, this was the easiest solution, I don't remember the specifics tho (It's no longer possible to stack 1+ alerts with this modification)