Giter VIP home page Giter VIP logo

least's Introduction

least.js is a Random & Responsive jQuery, HTML 5 & CSS3 Gallery with LazyLoad

How to install:

  1. Download least.js or view the Code on GitHub.

  2. Insert the following code before end of </head>-tag.

    <!-- least.js CSS-file -->
    <link href="css/least.min.css" rel="stylesheet" />
    <!-- jQuery libary -->
    <script src="http://code.jquery.com/jquery-latest.js" defer="defer"></script>
    <!-- least.js JS-file -->
    <script src="js/least.min.js" defer="defer"></script>
    <!-- Lazyload JS-file -->
    <script src="js/jquery.lazyload.min.js" defer="defer"></script>
  3. Insert the following code right after the <body>-tag.

    <section>
        <ul id="gallery">
            <li id="fullPreview"></li>
            
            <li>
                <a href="img/full/1.jpg"></a>
                <img data-original="img/thumb/1.jpg" src="img/effects/white.gif" width="240" height="150" alt="Ocean" />
            
                <div class="overLayer"></div>
                <div class="infoLayer">
                    <ul>
                        <li>
                            <h2>
                                Ocean
                            </h2>
                        </li>
                        <li>
                            <p>
                                View Picture
                            </p>
                        </li>
                    </ul>
                </div>
            
                <div class="projectInfo">
                    <strong>
                       Day, Month, Year:
                    </strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                </div>
            </li>
        </ul>
    </section>
  4. Now you need to call the plugin with your Gallery ID (default - #gallery).

    $(document).ready(function(){
        $('#gallery').least();
    });
  5. You can use the following default options:

    'random': true/false (default to true)
    'lazyload': true/false  (default to true)
    'scrollToGallery': true/false (default to true)

Changelog

V.1.5 (03. July 2013)
» New LazyLoad library (1.8.4)
» New jQuery library (2.0.1 - still working with jQuery 1.8)
» LazyLoad loading bugfix

V.1.4 (26. June 2013)
» Added image loader

V.1.3 (19. June 2013)
» Added a new option "scrollToGallery"
» New pictures

V.1.2 (06. June 2013)
» Transformation to a jQuery Plugin by Jorge Epuñan - @csslab
» Adding Changelog
» Some small Bugfixes

V.1.1 (30. April 2013)
» Changing file ending from .less to .scss
» Smaler Download
» Cleanup .js and .scss files
» Adding ReadMe file
» Some small Bugfixes

Done!

ToDos for the next version

  • slider function
  • simple integration

Made with ♥ by Kamil Czujowski and Sergej Müller
© 2013 Hamburg, Germany
Version: 1.5

least's People

Watchers

Nestamedia avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.