This time I will share jQuery Plugin and tutorial about jQuery Plugin For Stacked Polaroid Image Gallery – Photopile, hope it will help you in programming stack.
Photopile is a jQuery based polaroid image gallery that the photos are stacked & scattered randomly in a container and will display the larger version of a photo in a popup window when clicked.
How to use it:
1. Include the jQuery library and jQuery Photopile plugin’s javascript in the footer.
2 |
< script src = "photopile.js" ></ script > |
2. Include the jQuery Photopile plugin’s stylesheet in the header.
1 |
< link rel = "stylesheet" href = "photopile.css" > |
3. Wrap the images in a container following the Html structure like this. Use <a>
tag’s href
attribute to specify the large version of your images.
2 |
< li > < a href = "images/01i.jpg" > < img src = "images/01t.jpg" alt = "Alt 1" title = "" width = "80" height = "60" /> </ a > </ li > |
3 |
< li > < a href = "images/02i.jpg" > < img src = "images/02t.jpg" alt = "Alt 2" title = "" width = "80" height = "60" /> </ a > </ li > |
4 |
< li > < a href = "images/03i.jpg" > < img src = "images/03t.jpg" alt = "Alt 3" title = "" width = "80" height = "60" /> </ a > </ li > |
4. Set up the plugin at the beginning of photopile.js
02 |
var thumbOverlap = 50; |
03 |
var thumbRotation = 45; |
04 |
var thumbBorderWidth = 2; |
05 |
var thumbBorderColor = 'white' ; |
06 |
var thumbBorderHover = '#EAEAEA' ; |
10 |
var fadeDuration = 200; |
11 |
var pickupDuration= 500; |
12 |
var photoZIndex = 100; |
14 |
var photoBorderColor = 'white' ; |
19 |
var autoplaySpeed = 5000; |
22 |
var loading= 'images/loading.gif' ; |
Change log:
2018-06-06
2014-07-24
- Basic autoplay functionality added that loops through the photopile in sequence. Set variable autoplayGallery = true to use.
2014-07-02
- Added max-width to thumbnails for large resolutions greater than 1024px
2014-06-23
- Added a description div element to the photo container that displays an image’s alt tag.
2014-05-07
- Added a description div element to the photo container that displays an image’s alt tag.
2014-04-30
- Added next/prev functionality to navigator and implemented draggable thumbnails using jQuery UI
- Updating sprites and background images
2014-04-26
- Added style {-webkit-backface-visibility: hidden;} to thumbnail li’s to eliminate jagged edges
- Developing navigator
2014-04-25
- Added width and height attributes to thumbnail images
2014-04-24
2014-04-21
2014-04-20
- Photo container enlarge complete
- Bug fix in enlarge method (width/height switch)
This awesome jQuery plugin is developed by bigbhowell. For more Advanced Usages, please check the demo page or visit the official website.