Git Product home page Git Product logo

jquery-image-slider's Introduction

#jQuery Image Slider

The jQuery Image Slider is a piece of jQuery code I produced during the second year of my IMD Course. It came about because whilst I wanted to make use of large images, it was typically frowned upon as being used for 'filler' on the site. To that end I came up with a method to load in large images whilst not showing the full piece to the user until they decided to view it.

Whilst it started out as a very rough and ready (and admittedly sloppy) piece of code, I have cleaned it up somewhat and made sure that it works in as flexible a manner as possible. This is something I intend to continue in the future.

Version

v0.5 - Callback functionality, and documentation for them, added by GitHub user gravataLonga (see below for documentation).
v0.4 - Cleaned up performance of code.
v0.3 - Improved functionality of plugin, made it easier to use, and started making use of the HTML5 ability to use data- to create custom attributes to HTML elements.
v0.2 - Added support for other elements than div (mainly for support of the html5 figure element) [released on web & github]
v0.1 - Converted from raw jQuery to a jQuery Plugin [released on web]
v0.0 - Basic Functionality for personal use

##Credits

gravataLonga for adding functionality for callbacks for onClick, onStart and onEnd.


How to use:

  1. Download jQuery-Image-Slider from github.
  2. Query a element like $(".img") and call a plugin jquery like this: $(".img").imgslide();.

Callbacks:

onStart it's called when the plugin is initialize.
onClick it's called when slide is click to animated, this is called before animated.
onEnd it's called when the animation is finished.

Configuration

  • height [default: 220]
  • hideDuration [default: 0]
  • toggleDuration [default: 1500(1,5s)]

jquery-image-slider's People

Contributors

davidturner avatar gravatalonga avatar

Watchers

 avatar  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.