🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Photostack.js is ajQuery plugin to create a photo stack effect that allows the users to switch between photos by clicking on the top one.

Image-Rotator Polaroid-gallery

Documentation

jquery.Photostack.js

setup

<script src="//code.jquery.com/jquery-2.1.4.min.js"></script> <script src="jquery.Photostack.js"></script>

##HTML

<ul class="photostack">   <li><img src="1.jpg"></li>   <li><img src="2.jpg"></li>   <li><img src="3.jpg"></li> </ul>

##CSS

.js-photostack { position: relative; } .js-photostack > * {   position: absolute;   top: 0;   left: 0;   list-style-type: none; }

##JavaScript

$(".photostack").Photostack();

##Options

// top position to move top:40, // left position to move left:500, // custom rotation angles degFrom:-20, degTo:20

You May Also Like