Minimal Sliding Toast Plugin For jQuery - jToast.js

Minimal Sliding Toast Plugin For jQuery - jToast.js
File Size: 2.38 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

jToast.js is a really small and CSS-less jQuery toaster plugin which lets you create Android-style toast messages sliding out from the right side of the screen.

See also:

How to use it:

1. Place the minified version of the jToast.js library after jQuery.

<script src="https://code.jquery.com/jquery-3.3.1.min.js" 
        integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" 
        crossorigin="anonymous"></script>
<script src="jToast.min.js"></script>

2. Create a basic toast message that will auto dismiss after 3 seconds.

showToast('This is a toast.', null, 3);

3. Define the radius of the toast's corner.

showToast('This is a toast.', '25px', 3);

4. Change the timeout to 5 seconds.

showToast('This is a toast.', '25px', 5);

This awesome jQuery plugin is developed by LeonardGinter. For more Advanced Usages, please check the demo page or visit the official website.