Author: | aiocat |
---|---|
Views Total: | 30 views |
Official Page: | Go to website |
Last Update: | April 25, 2022 |
License: | MIT |
Preview:

Description:
Totify is a lightweight notification library for displaying non-blocking info, error, success, and warning messages on your web applications. These notifications will remain on the screen (meaning they won’t automatically dismiss after an event) until you click on them.
The library has no dependencies and is built to be as lightweight as possible, weighing in at a mere 2Kb.
How to use it:
1. Import the Totify library into your document.
<script src="index.js"></script>
2. Initialize the Totify and determine where to place those notifications on the screen.
// TOP RIGHT Totify.init("RIGHT", "TOP"); // BOTTOM LEFT Totify.init("LEFT", "BOTTOM");
3. Create different types of notification messages.
// Info Totify.info("Info Message"); // Error Totify.error("Error Message"); // Success Totify.success("Success Message"); // Warning Totify.warn("Warning Message");