Tweet



 
A very easy to use, cross platform, jQuery based UI toolkit, that’s still small in size, has the features you need, and doesn’t get in your way of doing things! Put jQuery and jKit on all your pages and HTML becomes so much better. And the best thing? You really don’t have to be a programmer to create a trully amazing website! jKit has 99% of all the features you ever need. You don’t have to check out dozens of plugins, learn how to use them, only to find out they don’t work in a specific browser. And even if jKit doesn’t have that one feature you need right now, jKit is fully extendable with plugins and command replacements, all that and your API always stays the same.

Hi, stranger

jKit is growing almost daily, if you don’t find what you need, let us know with a post on the community forum or our social pages. Hey, who knows, maybe it’s already on our ToDo list.

Content Summary

jKit Button

If you like jKit, use and want to support the project, here’s a small button you can use to link to the jKit website.

Btw, if you did something really nice with jKit, send us a link to your work and if we like it, we would sure love to feature it.

Slideshow command

Create slideshows of images or other HTML elements, even linked ones.

Basic Usage (HTML)

data-jkit="[slideshow:interval=4000;speed=fast;animation=fade]"

Advanced Init (JavaScript)

$('#myelement').jKit('slideshow', { 'interval': '4000', 'speed': 'fast', 'animation': 'fade' });

Options

OptionValuesDefaultDescription
shuffle“yes” or “no”noDo you want to shuffle the slides on init?
intervalInt (Milliseconds)3000In which interval to replace the slide
speedInt or “fast”, “slow” (Milliseconds)250The duration of the animation in milliseconds, bigger = slower.
animation“fade”, “slide” or “none”fadeThe type of animation used for the transition
easingString (“linear” or easing plugin option)linearThe easing behavior of the animation
onEvent “click” or “mouseover”Start and stop the slideshow on a specific event

Events

EventDescription
hideentryTriggered when a slide is being hidden
hideentryNTriggered when a specific slide is being hidden where “N” is the tab index
showentryTriggered when a slide is shown
showentryNTriggered when a specific slide is shown where “N” is the tab index

Examples

Basic Example:

This is the normal use case for the slideshow command:

Source:
<div data-jkit="[slideshow:interval=4000;speed=250;animation=fade]">
	<a href="http://fredibach.ch" target="_blank"><img src="../img/slides/p1.jpg"></a>
	<a href="http://fredibach.ch" target="_blank"><img src="../img/slides/p2.jpg"></a>
	<a href="http://fredibach.ch" target="_blank"><img src="../img/slides/p3.jpg"></a>
	<a href="http://fredibach.ch" target="_blank"><img src="../img/slides/p4.jpg"></a>
	<a href="http://fredibach.ch" target="_blank"><img src="../img/slides/p5.jpg"></a>
</div>

Headlines:

You don’t have to use images in a slideshow, headlines or any other HTML element is ok, as well:

First Headline

Another Headline

Even More of a Headline

Still not the last headline

The last headline

Source:
<div style="text-align:center;font-size:2em" data-jkit="[slideshow:interval=2000;speed=500;animation=fade]">
	<h3>First Headline</h3>
	<h3>Another Headline</h3>
	<h3>Even More of a Headline</h3>
	<h3>Still not the last headline</h3>
	<h3>The last headline</h3>
</div>

Click event:

Start and stop the slideshow on click:

Source:
<div data-jkit="[slideshow:interval=2000;speed=250;animation=fade;on=click]">
	<img src="../img/slides/p1.jpg">
	<img src="../img/slides/p2.jpg">
	<img src="../img/slides/p3.jpg">
	<img src="../img/slides/p4.jpg">
	<img src="../img/slides/p5.jpg">
</div>

Mouseover event:

Start and stop the slideshow on mouseover and mouseout:

Source:
<div data-jkit="[slideshow:interval=2000;speed=250;animation=fade;on=mouseover]">
	<img src="../img/slides/p1.jpg">
	<img src="../img/slides/p2.jpg">
	<img src="../img/slides/p3.jpg">
	<img src="../img/slides/p4.jpg">
	<img src="../img/slides/p5.jpg">
</div>

Replacements

There are currently no replacements for this command.

[ Learn more about replacements ]

 

Discussions

Do you have questions or do you want to suggest new features? Than head over to our new community:

[ jKit Community ]