jQuery Plugin For Creating Stacked Elements elstack - Download jQuery Plugin For Creating Stacked Elements - elstack

Download jQuery Plugin For Creating Stacked Elements – elstack

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Creating Stacked Elements – elstack, hope it will help you in programming stack.

jQuery Plugin For Creating Stacked Elements elstack - Download jQuery Plugin For Creating Stacked Elements - elstack
File Size: 9.41 KB
Views Total: 500
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

elstack is a simple and funny jQuery plugin used to create a group of HTML elements, to show a bundle just like the stacked cards.

How to use it:

1. Just place the jQuery elstack plugin’s script after jQuery JavaScript library and we’re ready to go.

1 <script src="//code.jquery.com/jquery-3.1.1.slim.min.js"></script>
2 <script src="dist/elStack.min.js"></script>

2. Add the ‘data-elstack’ attribute to your element and specify the number of elements to be stacked.

1 <div data-elstack="10">
2   Custom content here
3 </div>

3. Adjust the top and left offsets in pixels.

1 <div data-elstack="10"
2      data-elstack-offset-top="8"
3      data-elstack-offset-left="8">
4      Custom content here
5 </div>

4. Override the default wrapper CSS class:

1 <div data-elstack="10"
2      data-elstack-offset-top="8"
3      data-elstack-offset-left="8"
4      data-elstack-class="elStack-container">
5      Custom content here
6 </div>

5. Set the stack styles:

1 <div data-elstack="10"
2      data-elstack-offset-top="8"
3      data-elstack-offset-left="8"
4      data-elstack-style="default">
5      Custom content here
6 </div>

Change log:

2016-12-31

  • added stack styles.

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

source : jqueryscript.net