Skip to content

thinesjs/toastify-js

 
 

Repository files navigation

Toastify

document.getElementById("new-toast").addEventListener("click", function() {
                Toastify({
                text: "This is a toast",
                duration: 3000,
                close: true,
                gravity: "top", // `top` or `bottom`
                position: "right", // `left`, `center` or `right`
                stopOnFocus: true, // Prevents dismissing of toast on hover
                style: {
                    // background: "linear-gradient(to right, #00b09b, #96c93d)",
                },
                onClick: function(){} // Callback after click
            }).showToast();
        });

About

Pure JavaScript library for better notification messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.8%
  • CSS 11.5%
  • HTML 6.7%