Skip to content

A simple, lightweight and responsive product image viewer using jQuery

Notifications You must be signed in to change notification settings

DioVayne/Smoothproducts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Smoothproducts A lightweight & simple jQuery product viewer script by Kevin Thornbloom.

##Demo Open demo in new window

##Features

  • Zooming & panning features for desktops and touch screens
  • Odd image size handling
  • Container is responsive
  • Thumbnails with indicators
  • Minimal markup
  • Multiple Instances allowed.

##Usage

  • Add the CSS to your stylesheet, or just call it in your header:
	<link rel="stylesheet" href="css/smoothproducts.css">
  • Add & call javascript in your footer:
	<script type="text/javascript" src="js/smoothproducts.js"></script>
	<script type="text/javascript">
        /* wait for images to load */
        $(window).load( function() {
            $('.sp-wrap').smoothproducts();
        });
    </script>
  • Add HTML Markup of a wrapper div called "sp-wrap". Inside should be your medium-sized thumbnail images. Each thumbnail should be linked to the higher-resolution version of its self. Use thumbnails of the same width for best results. (You may use different heights)
	<div class="sp-wrap">
		<a href="images/1.jpg"><img src="images/1_tb.jpg" alt=""></a>
		<a href="images/2.jpg"><img src="images/2_tb.jpg" alt=""></a>
	</div>
  • You may wish to add a max-width equal to the width of your preview images. Apply this to the .sp-wrap class in the stylesheet.
	.sp-wrap {
	    max-width: 300px;
	}

##Licensing Free to use and modify personally or commercially. Not for resale.

##Help & Feedback Make something cool with this? Let me know on twitter!

About

A simple, lightweight and responsive product image viewer using jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.1%
  • CSS 26.9%