Skip to content

blenderer/shuriken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

shuriken

Minimal (Less than 900 bytes) Left-right content slider jQuery plugin

Minimal HTML required:

Any HTML element with children will do. As an example:

<div id="slider">
	<div>Hello</div>
	<div>This</div>
	<div>Is</div>
	<div>A Cool</div>
	<div>Slider</div>
</div>

Some sample CSS to use with this:

#slider {
	width: 50%;
	height:100px;
	margin:auto;
	background-color: green;
}
#slider div {
	text-align: center;
	color: white;
}

And finally, how to call Shuriken: (Speed is the only option right now)

slider = $("#slider").shuriken({
	speed: 600
});
How to shuffle to a different slide:
//2 is the index of the child element
slider.ninjaStarSlice(2);

About

Minimal Left-right content slider jQuery plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published