This time I will share jQuery Plugin and tutorial about Small Animated jQuery Android-Like Toast Plugin – Notice, hope it will help you in programming stack.
Notice is a tiny jQuery notification plugin used to add Android-like animated toast messages anywhere on your webpage/web application. Currently support 4 types of notification: into, success, warning and error. You can easily and quickly extend the plugin to add more notification types in Javascript.
How to use it:
1. Load jQuery library and the jQuery notice plugin at the end of the document.
1 |
< script src = "//code.jquery.com/jquery-1.11.1.min.js" ></ script > |
2 |
< script src = "dist/notice.js" ></ script > |
2. Create a basic toast with one line of Javascript.
1 |
// $.notice(MESSAGE,OPTIONS); |
3 |
$.notice('Your message goes here', { |
3. All the options. You can also pass these options via Html5 data-*
attributes defined in trigger elements.
01 |
$.notice( 'Your message goes here' , { |
20 |
padding: '10px 20px 10px 20px' , |
27 |
background: '#dff0d8' , |
31 |
background: '#f9fad2' , |
35 |
background: '#f2dede' , |
Change log:
2017-09-01
This awesome jQuery plugin is developed by firstandthird. For more Advanced Usages, please check the demo page or visit the official website.