Coder Social home page Coder Social logo

craftyslide's Introduction

Craftyslide - A tiny jQuery slideshow plugin

About

Craftyslide is a tiny (just 2kb) slideshow built on jQuery. Craftyslide aims to be different, by providing a simple, no-frills method of displaying images; packaged into a small, clean and efficient plugin.

Usage

HTML

<div id="slideshow">
	<ul>
		<li>
			<img src="image1.jpg" title="Lorem ipsum dolor sit amet" />
		</li>

		<li>
			<img src="image2.jpg" title="Lorem ipsum dolor sit amet" />
		</li>

		<li>           
			<img src="image3.jpg" title="Lorem ipsum dolor sit amet" />
		</li>	                         
	</ul>
</div>

Simply create a div which houses a ul containing your list of images (add an optional title to create captions), then include the supplied JS/CSS files. That's all there is to it!

Scripts:

<link rel="stylesheet" href="css/craftyslide.css" />
<script src="js/craftyslide.js"></script>

Basic Initialization:

<script>
	$("#slideshow").craftyslide();
</script>

Options

width (number)

Set a custom width for your slideshow.

height (number)

Set a custom height for your slideshow

pagination (true/false)

Select whether to display pagination or not. Setting to false hides pagination and enables auto mode.

fadetime (number)

Define the fade animation speed of slides.

delay (number)

Used during auto mode (pagination set to false). Defines the delay between each slide being shown.

Options example:

$("#slideshow").craftyslide({
	'width': 640,
	'height': 400,
	'pagination': false,
	'fadetime': 500,
	'delay': 2500
});

License

Copyright (c) 2011 Crafted Pixelz Licensed under the MIT license

craftyslide's People

Contributors

craftedpixelz avatar

Stargazers

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

craftyslide's Issues

Avoid outline overflow

Hi,

In the pagination, the outline overflows. There is a simple fix to apply to avoid that :

Simply add overflow: hidden; to #pagination li a

This occurs because of the text-indent: -10000px;

Transitions buffered

Hi,
Just installed this excellent implmentation of a slideshow. The only problem I have is that it appears that transitions are being buffered if the browser does not have the focus. When you next view the browser the images quickly flick to catch up ignoring the delay time, i.e. this obviously only occurs where pagination is false. I just checked and this affects Firefox and not IE!!!!

Thanks for any help
Mark

Percentage width

Is there a way to make the crafty slide a percentage width, to be used with a fluid grid?

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.