Download
User Rating: 4.2/5 ( 1 votes)
Galpop is a jQuery plugin that creates image galleries. It can be controlled with the left and right arrow keys and automatically resizes with your browser.
Key Features
-
Resizes with your browser
-
Can use arrow keys for controls
-
Callbacks after every image is loaded
-
Backgrounds and borders can be easily changed with CSS
Source: galpop.magicmediamuse.com
1. IINCLUDE CSS AND JS FILES
<!-- Include the stylesheet -->
<link type="text/css" href="css/jquery.galpop.css" rel="stylesheet" media="screen" />
<!-- Include jQuery -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!-- Include the gallery plugin -->
<script type="text/javascript" src="js/jquery.galpop.min.js"></script>
2. HTML
Create anchors that link to the pop-up image. You should add a "data-galpop-group" attribute to the anchor which will group all your images so you can use next and previous buttons.
<a href="images/image-1-large.jpg" class="galpop" data-galpop-group="gallery" title="first image">
<img src="images/image-1-tb.jpg" alt="first image thumbnail" />
</a>
<a href="images/image-2-large.jpg" class="galpop" data-galpop-group="gallery" title="second image">
<img src="images/image-2-tb.jpg" alt="second image thumbnail" />
</a>
<a href="images/image-3-large.jpg" class="galpop" data-galpop-group="gallery" title="third image">
<img src="images/image-3-tb.jpg" alt="third image thumbnail" />
</a>
<a href="images/image-4-large.jpg" class="galpop" data-galpop-group="gallery" title="forth image">
<img src="images/image-4-tb.jpg" alt="forth image thumbnail" />
</a>
<a href="images/image-5-large.jpg" class="galpop" data-galpop-group="gallery" title="fifth image">
<img src="images/image-5-tb.jpg" alt="fifth image thumbnail" />
</a>
3. JAVASCRIPT
$('.galpop').galpop();
4. OPTIONS
Option |
Default |
Parameters |
Description |
Notes |
arrowKeys |
true |
true/false |
Use left and right arrow keys for controls. Esc to close. |
|
controls |
true |
true/false |
Display next / prev control arrows |
|
loop |
true |
true/false |
Allows looping back to the beginning |
|
maxWidth |
null |
integer |
Maximum amount of pixels for width |
|
maxHeight |
null |
integer |
Maximum amount of pixels for height |
|
maxScreen |
90 |
integer |
Maximum percentage of screen size |
Overrides maxWidth and maxHeight |
updateRsz |
true |
true/false |
Update on window resize |
|
callback |
null |
Function |
Function to run after every panel is complete |
Also called after update method |
lockScroll |
true |
true/false |
Prevent the browser from scrolling when pop-up is open
|