Textarea Maxlength Plugin jQuery maxlength - Download Cross-browser Textarea Maxlength Plugin - jQuery maxlength.js

Download Cross-browser Textarea Maxlength Plugin – jQuery maxlength.js

Posted on

This time I will share jQuery Plugin and tutorial about Cross-browser Textarea Maxlength Plugin – jQuery maxlength.js, hope it will help you in programming stack.

Textarea Maxlength Plugin jQuery maxlength - Download Cross-browser Textarea Maxlength Plugin - jQuery maxlength.js

File Size: 126 KB
Views Total: 4970
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A before/after image comparison jQuery plugin that creates a custom horizontal or vertical slider to compare two overlapping images for differences. 

How to use it:

1. Insert the before and after images into the comparison area.

1 <div id="demo">
2   <div><img alt="before" src="before.jpg"></div>
3   <div><img alt="after" src="after.jpg"></div>
4 </div>

2. Download and insert the JavaScript file beforeAfter.js after jQuery library.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="js/beforeAfter.js"></script>

3. Initialize the image comparison slider with default settings.

1 $('#demo').beforeAfter();

4. Customize the image comparison slider with the following options.

01 $('#demo').beforeAfter({
02  
03   // 'h': horizontal
04   // 'v': vertical
05   direction : "h",
06  
07   // auto returns to center
08   returnToCenter : 'true',
09  
10   // background color/image of slider
11   background: 'gray',
12  
13   // slider size
14   barSize: 3,
15  
16   // start point
17   start: 'center',
18  
19   // callback
20   onReady: function(){}
21    
22 });

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

source : jqueryscript.net