Make your notifications awesome
Source code Alertia on github
Then just don't worry! Alertia can do it for you, by just a one line of code you can get a beautifull alert messages!
Alertia is a JS library to get awesome instant alert!
Just use:
alertia("A simple alert");
and you get this:
much better , customizable than simple js alert
Link alertia js script through JSdelivr
- Insert this script in
<head></head>
<script src="https://cdn.jsdelivr.net/gh/abhiprojectz/alertia/dist/alertia.js"></script>
- Now just call alertia
<script type="text/javascript">
alertia("a simple pop");
</script>
It also supports JSON type formatting to make it simple and easily customizable!
All you need is a script via CDN, rest it needs 0 installation
The order is "msg" , "type" , "style" & "time"
for eg:
alertia("Hi! i'm on", "normal" , 3000);
Use json object formatting as:
=> "msg": "a random msg",
"type":"normal",
"style":"slit",
"time":"3000"
for eg:
alertia({"msg": "a random msg",
"type":"normal",
"style":"slit",
"time":"3000"});
Alertia have various features that a modern alert should have!
Different types of type, style etc
it has 3 types
- normal just a normal noification etc
- Danger for error, break code etc
- success for finishing of task etc
To change animations you need to use style , alertis has lots of animation including roll , fade , slit , bounce etc...
To access use time:
If you found this helpfull then do give it a star/upvote etc.
Created with JS by @abhiprojectz