Just another jQuery slider plugin. demo
<script src="cdn.jquery.js"></script>
<script src="slider.js"></script>
<script>
$(document).ready(function(){
var slider = $('.slider').Slider(options)
// or use constructor function
var slider = new $.fn.Slider('.slider', options)
})
</script>
Set slider switch animation duration in millisecond, default 400
Which easing function to use for the transition
Every single slider display duration
Which direction the slider to scroll, default 'horizontal', can also be set to 'vertical'
Whether auto start
Whether show slider indicators
Whether show prev and next arrows
Callback function when slider finish the transition
Slider.defaults = {
speed: 400,
easing: 'swing',
duration: 3000,
direction: 'horizontal',
autoPlay: true,
showNav: true,
showArrow: true,
onActive: null
}
slide to previous slider.
slide to next slider.
slide to a specify index slider.
https://xuhong.github.io/slider
MIT