Lightweight Product Viewer Slider Plugin With jQuery Product Showcase - Download Lightweight Product Viewer / Slider Plugin With jQuery - Product Showcase

Download Lightweight Product Viewer / Slider Plugin With jQuery – Product Showcase

Posted on

This time I will share jQuery Plugin and tutorial about Lightweight Product Viewer / Slider Plugin With jQuery – Product Showcase, hope it will help you in programming stack.

Lightweight Product Viewer Slider Plugin With jQuery Product Showcase - Download Lightweight Product Viewer / Slider Plugin With jQuery - Product Showcase
File Size: 6.22 KB
Views Total: 4435
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Product Showcase is a jQuery plugin used for creating a responsive product viewer / slideshow where the users has the ability to fade through product images by clicking on the thumbnails. Licensed under the GNU General Public License.

How to use it:

1. Include jQuery JavaScript library and the jQuery product showcase plugin’s JS & CSS files on your html page.

1 <script src="//code.jquery.com/jquery-3.0.0.min.js"></script>
2 <script src="product-showcase.js"></script>
3 <link href="product-showcase.css" rel="stylesheet">

2. Add your product images / thumbnails / descriptions / urls / etc information into the product showcase using html5 data attributes as follows:

  • data-icon: thumbnail image
  • data-image: original image
  • data-title: product title
  • data-description: product description
  • data-button-text: text for action button
  • data-button-link: url
  • data-align: text alignment for the slide
  • data-selected: show the slide when the page is loaded
  • data-text-highlight: highlight text
01 <div class="product-showcase">
02  
03   <div class="ps-icon"
04        data-icon="thumb-1.jpg"
05        data-image="1.jpg"
06        data-title="Product 1"
07        data-description="Product 1"
08        data-button-text="Buy Now!"
09        data-button-link="#"
10        data-align="right"
11        data-selected="true"
12        data-text-highlight="true">
13   </div>
14  
15  
16   <div class="ps-icon"
17        data-icon="thumb-2.jpg"
18        data-image="2.jpg"
19        data-title="Product 2"
20        data-description="Product 2"
21        data-button-text="Buy Now!"
22        data-button-link="#"
23        data-align="right"
24        data-selected="true"
25        data-text-highlight="true">
26   </div>
27  
28  
29   <div class="ps-icon"
30        data-icon="thumb-3.jpg"
31        data-image="3.jpg"
32        data-title="Product 3"
33        data-description="Product 3"
34        data-button-text="Buy Now!"
35        data-button-link="#"
36        data-align="right"
37        data-selected="true"
38        data-text-highlight="true">
39   </div>
40  
41 </div>

3. Initialize the product viewer by calling the function on the top container.

01 $(".product-showcase").productShowcase({
02  
03   // max height of the product viewer
04   maxHeight:"550px",
05  
06   // width of the product viewer
07   width:"100%",
08  
09   // size of the thumbnails
10   iconSize:"90px"
11    
12 });

 


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

source : jqueryscript.net