Git Product home page Git Product logo

luckyplayer's Introduction

##LuckyPlayer is a super light jQuery slideshow and lightbox.

Implementation requires an unordered list of images (the thumbnails) inside an anchor tag that links to the full size image.

<ul class="luckyplayer">
   <li>
      <a href="http://path.to/full/size.jpg">
         <img src="http://path.to/thumbnail.jpg"/>
      </a>
   </li>
</ul>

There are only a few options and they should be passed as an object. The option auto sets the interval (in ms) at which images will be advanced when the player is active. The loop option sets whether or not to start over at the first image when the end of the list is reached. The final option is likely to be the one you need to use. The images option sets the path to the images rquired by Luckyplayer. It defaults to /assets/images/luckyplayer/ but this should be changed to wherever you have placed the images on your server. Note that the trailing slash is required.

$("ul.luckyplayer").luckyplayer({
    auto: 3000, // 3 second interval
    loop: false, // disable advancing once the end of the list is reached
    images: '/images/luckyplayer/' // path to wherever you put the images
});

That's it, just remember to load jQuery before this script.

luckyplayer's People

Contributors

luckycadow avatar

Watchers

 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.