A minimal, beautiful, plug & play toast message library created using pure (vanilla) JavaScript.
vanilla-toast.min.js
script in the document and we’re ready to go.<script src="lib/vanilla-toast.min.js"></script>
2. Create toast messages as follows.
vt.success("Success Message");
vt.info("Info Message");
vt.warn("Warning Message");
vt.error("Error Message");
3. Available options to customize your toast messages.
vt.success("Success Message",{
title: undefined,
position: toastPosition.TopCenter,
duration: 2000,
closable: true,
focusable: true,
callback: undefined
});
Author: mehmetemineker
Demo: https://mehmetemineker.github.io/vanilla-toast/
Source Code: https://github.com/mehmetemineker/vanilla-toast
#javascript