gridder

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.

Github星跟蹤圖

jQuery GRIDDER 1.4.2 unheap CDNJS version

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.

We have all searched images on Google, so you probably noticed the interesting expanding preview when you click on a thumbnail. It’s a very nice effect and practical, allowing you quickly see more details without having to reload a new page. This plugin allows you to recreate a similar effect on a thumbnail grid. The idea is to open a preview when clicking on a thumbnail and to show a larger image and some other content like a title, a description and a link

=======

Alternative version of Gridder that support html 5 pushstate (REQUIRES SERVER KNOWLEDGE)

Live demo GRIDDER v2 : http://www.oriongunning.com/demo/gridder-ajax/demo.php

=======

NEW

*24 June 2015
You can now load content via ajax. Simply replace the #ID with an URL.

=======

FEATURES

  • Multiple instances
  • Really easy to use and customize
  • Expanding preview with details
  • Smooth Scrolling
  • Callbacks (so you can launch other plugins)

Coming soon ...

  • Hot Linking

=======

Usage

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    
  2. Include plugin's code:

    <script src="dist/jquery.gridder.min.js"></script>
    
  3. HTML

    
    <!-- Gridder navigation -->
    <ul class="gridder">
    
         <!-- You can load specify which content is loaded by specifying the #ID of the div where the content is  -->
        <li class="gridder-list" data-griddercontent="#content1">
            <img src="http://placehold.it/600x400" />
        </li>
        <li class="gridder-list" data-griddercontent="#content2">
            <img src="http://placehold.it/600x400" />
        </li>
        <li class="gridder-list" data-griddercontent="#content3">
            <img src="http://placehold.it/600x400" />
        </li>
    
        <!-- You can also load html/ajax pages by replacing the #ID with a URL -->
        <li class="gridder-list" data-griddercontent="/content.html">
            <img src="http://placehold.it/600x400" />
        </li>
    </ul>
    
    <!-- Gridder content -->
    <div id="content1" class="gridder-content"> Content goes here... </div>
    <div id="content2" class="gridder-content"> Content goes here... </div>
    <div id="content3" class="gridder-content"> Content goes here... </div>
    
    
  4. Call the plugin:

    <script>
    $(function() {
    
        // Call Gridder
        $('.gridder').gridderExpander({
            scroll: true,
            scrollOffset: 30,
            scrollTo: "panel",                  // panel or listitem
            animationSpeed: 400,
            animationEasing: "easeInOutExpo",
            showNav: true,                      // Show Navigation
            nextText: "Next",                   // Next button text
            prevText: "Previous",               // Previous button text
            closeText: "Close",                 // Close button text
            onStart: function(){
                //Gridder Inititialized
            },
            onContent: function(){
                //Gridder Content Loaded
            },
            onClosed: function(){
                //Gridder Closed
            }
        });
    
    });
    </script>
    

This work is licensed under a Creative Commons Attribution 3.0 Unported License.

主要指標

概覽
名稱與所有者orion3dgames/gridder
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證
所有者活动
創建於2013-07-24 08:05:11
推送於2025-05-27 08:43:23
最后一次提交2025-05-27 18:43:23
發布數4
最新版本名稱v1.4.2 (發布於 2016-03-08 17:06:00)
第一版名稱v1.2 (發布於 2015-02-26 09:05:35)
用户参与
星數458
關注者數34
派生數127
提交數140
已啟用問題?
問題數66
打開的問題數17
拉請求數4
打開的拉請求數3
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?