Skip to content

Tod314/tj-gallery

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

TJ gallery

Plugin for jquery. Plugin's page

TJ Gallery
Demo1
Demo2

Installation

<script src="js/jquery.min.js"></script>
<script src="js/jquery-tjgallery.min.js"></script>

HTML

<div class="pictures">
    <img src="images/i_1.jpg" alt="" />
    <img src="images/i_2.jpg" alt="" />
    <img src="images/i_3.jpg" alt="" />
    <img src="images/i_4.jpg" alt="" />
    <img src="images/i_5.jpg" alt="" />
    <img src="images/i_6.jpg" alt="" />
    <img src="images/i_7.jpg" alt="" />
    <img src="images/i_8.jpg" alt="" />
    <img src="images/i_9.jpg" alt="" />
    <img src="images/i_10.jpg" alt="" />
</div>

JS

$(document).ready(function(){
    /* Waiting for the pictures to load */
    $(window).load(function(){
        $('.pictures').tjGallery();
    })
});

Options

selector
type: string
Default: 'img'

Block selector

row_min_height
type: integer
Default: 180

Min height for block's line

margin
type: integer
Default: 5

Margin between blocks

Methods

clear
clear grid

destroy
destroy grid

About

jQuery plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published