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.

Carousel command

Make content go around and around ... and around.

Basic Usage (HTML)

data-jkit="[carousel:autoplay=no]"

Advanced Init (JavaScript)

$('#myelement').jKit('carousel', { 'autoplay': 'no' });

Options

OptionValuesDefaultDescription
autoplay"yes" or "no"yesShould the carousel automatically play on init?
limitInt5How many slides to display
animation"fade", "slide" or "none"growThe type of animation used for the transition
speedInt or "fast", "slow" (Milliseconds)250The duration of the animation in milliseconds, bigger = slower.
easingString ("linear" or easing plugin option)linearThe easing behavior of the animation
intervalInt (Milliseconds)5000In which interval to replace the slide
prevhtmlHTML<The HTML for the prev button
nexthtmlHTML>The HTML for the next button

Events

EventDescription
shownextTriggered when the next entry is being shown
showprevTriggered when the previous entry is being shown

Examples

Basic example:

Simple example with some divs that contain text:

Source:
<div class="carousel" data-jkit="[carousel]">
	<div class="carousel-item">
		<div>DIV 1 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 2 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 3 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 4 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 5 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 6 ...</div>
	</div>
	<div class="carousel-item">
		<div>DIV 7 ...</div>
	</div>
</div>

Example CSS

div.carousel {
	overflow: hidden;
	pointer-events: none;
	text-align: center;
	width: 100%;
	height: 150px;
}

div.carousel-item {
	float: left;
	width: 20%;
	height: 150px;
	background: #E01B49;
	margin: 0px;
	padding: 0px;
	text-align: center;
	color: #fff;
	font-weight: bold;
	line-height: 200%;
}

div.carousel-item div {
	padding: 20px;
	border: 1px #fff solid;
	height: 110px;
}

a.jkit-carousel-prev, a.jkit-carousel-next {
	width: 40px;
	background: #eee;
	border: 1px #999 solid;
	color: #333;
	padding: 4px;
	cursor: pointer;
	cursor: hand;
	margin-top: 10px;
	text-align: center;
	user-select: none;
}

a.jkit-carousel-prev:hover, a.jkit-carousel-next:hover {
	background: #fff;
	border: 1px #666 solid;
	color: #000;
}

a.jkit-carousel-prev {
	float: left;
}

a.jkit-carousel-next {
	float: right;
}

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 ]