Git Product home page Git Product logo

jquery.dslide's Introduction

DSlide is a jQuery plugin to create a slideshow out of an unsorted list.

current version: 0.1

== Installation/Usage

add the following tags to the head section of your html page

	<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.dslide.js"></script>
	
	<link rel="stylesheet" media="screen" type="text/css" href="css/dslide.css" />

create a <ul> inside your wrapper <div>, containing the images in <li>-elements

<div id="wrapper">
	<ul>
		<li>
			<img src="..." />
		</li>
		.
		.
		.
	</ul>
</div>

initiate the slider
jQuery(document).ready(function() {
	jQuery('#wrapper').DSlide();
});

== available settings

cssPrefix: string
	the prefix, the dynamically generated DOM elements should have on ther css classname (default: 'dslide-')

autoStart: boolean
	if set to true, the slideshow start's immediatly after initiating

duration: float
	duration of transition in seconds - default: 1

frequency: float
	seconds to wait between automatic transition - default: 5
	
Pass the options as parameter on initiate-call
	jQuery('#wrapper').DSlide({duration: 0.5, frequency: 7});
	
if autoStart is set to false, you can start the animation by calling start
	jQuery('#wrapper').DSlide('start');

you can stop the animation by calling stop
	jQuery('#wrapper').DSlide('stop');
	
you can reset the slideshow to initial images by calling reset
	jQuery('#wrapper').DSlide('reset');
	
== Licenses
jquery.dslide is licensed under the terms of MIT-License.

the sample images contained in the example folder are licensed under creative commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
http://creativecommons.org/licenses/by-nc/3.0/

jquery.dslide's People

Contributors

dvelopment avatar

Stargazers

 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.