Simple Slider jQuery plugin with options allowing you to customize it just like you want.
Current version: 1.0 Stable
Demonstration
-
Default
Show usage -
Basic configuration
Show usage
Basic Usage
Basic HTML
<div class="slider">
<p> some text </p>
<p> some text </p>
<p> some text </p>
</div>
Basic CSS
.slider-container, .slider {
width: 300px;
height: 100px;
}
Basic Initialization
$(function() {
$('.slider').miniSlider();
});
Options
-
autoPlay (boolean)
Autoplay slides on load.
Default value is true Show example -
delay (integer)
Delay between slides in milliseconds.
Default value is 3000 Show example -
containerClass (string)
Slider container CSS class name.
Default value is 'slider-container' Show example -
currentClass (string)
Current slide CSS class name.
Default value is 'current' Show example -
previousClass (string)
Previous slide CSS class name.
Default value is 'previous' Show example -
nextClass (string)
Next slide CSS class name.
Default value is 'next' Show example -
transitionSpeed (integer)
Transition speed between slides in milliseconds.
Default value is 500 Show example -
transitionEasing (string)
Easing animation for the slides transition.
Default value is 'swing' Show example -
pauseOnHover (boolean)
Pause slider animation on mouse over.
Default value is false Show example -
showNavigation (boolean)
Show next / previous buttons.
Default value is true Show example -
previousBtnClass (string)
Previous button CSS class.
Default value is 'previousBtn' Show example -
nextBtnClass (string)
Next button CSS class.
Default value is 'nextBtn' Show example -
previousBtnContent (string)
Previous button HTML content.
Default value is '&lsaquo' (arrow) Show example -
nextBtnContent (string)
Next button HTML content.
Default value is '&rsaquo' (arrow) Show example -
showPagination (boolean)
Show slider pagination.
Default value is true Show example -
paginationClass (string)
Pagination wrapper class.
Default value is 'pagination' Show example -
currentPaginationClass (string)
Current pagination list item CSS class.
Default value is 'currentPagination' Show example -
onLoad (function)
Called when slider is loading.
Default value is empty Show example -
onReady (function)
Called when slider is ready.
Default value is empty Show example -
onTransition (function)
Called when it's changing slides.
Default value is empty Show example -
onComplete (function)
Called when the slide transition is complete.
Default value is empty Show example
Connect
About
Matthieu Aussaguel
I am a Web Developer currently working at Envato as part of the Marketplace dev team in Melbourne, Australia. I focus mostly on Ruby/Rails technologies but I also enjoy coding in CoffeeScript in my spare time. Head over to my personal website and my Github page for more info about me.
Follow @mattaussaguel