Git Product home page Git Product logo

iskip's Introduction

iSkip

iSkip creates a container of images with a configurable key image. The effect is seen on Apple Mac computers when using iPhoto.

iSkip is created using the jQuery library.

Implementation

Calling iSkip

The simplest implementation to get iSkip working is by adding the code below. This will apply iSkip to a container with the ID of mousemove. Of course you can always add a class attribute if you wish to have multiple instances of iSkip on one page.

$("#mousemove").iskip();

Options

You can specify extra options to add greater control to your iSkip implementation.

There are two methods for iSkip to loop through the images.

mousemove

click

Addtionally by setting a number in cycle tells iSkip how fast to change the images in the container, the lower the number the faster iSkip skips the images.

cycle

If you want to have a different target area than the image which is changed, use the img option and pass in the jQuery object for the image which should change. Run the iskip method on the target.

$('.thumbnailTarget').iskip({images:array, method:mousemove, cycle:3, img:$('.thumbnailTarget img')}); 

See the statement below for how the iSkip demo was set up on this website.

$("#mousemove").iskip({images:array, method:'mousemove', 'cycle':3});

MIT License

Copyright (c) 2011 Ian Tearle

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iskip's People

Contributors

iantearle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iskip's Issues

Documentation Clarification

Some more information is needed on how the image array is assigned . It's not even close to clear how this is called and only from digging around the authors site on his implementation was I able to find his call using an assigned array for the images - is this how it is meant to be / the only way?

          '/expanse/themes/html5/images/iantearle_logo.png',
          '/expanse/themes/html5/images/iskip/iskip_heritage_app.png',
          '/expanse/themes/html5/images/iskip/iskip_beer_tap.png',
        ]
        $(".iskip").iskip({images:array, method:'mousemove', 'cycle':1});

The readme doesn't talk about the images array at all, so I was lsot wondering how it is assigned.

  • ideally and example HTML.
  • Must all image be the same size / type.

Should it be;


< div id="iskip">
   < img src="1.gif">< img src="1.gif">< img src="1.gif">
< /div>

or


< ul id="iskip">
 <  li><img src="1.gif"></li>
 < li><img src="1.gif"></li>
 < li><img src="1.gif"></li>
< /ul>

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.