JQuery slider with scrolling navigation
Need JQuery http://jquery.com/download/ and JQuery UI http://jqueryui.com/
- new parameter {equalHeight : true}. Sets the height of each cell is the largest cell
<script src=”jquery.sliderFlow.min.js”></script>
<div id="slider">
<ul class="slider-container">
<li class="slide"></li>
...
<li class="slide"></li>
</ul>
</div>
$(function() {
$('#slider').sliderFlow({
container : '.slider-container',
navigation : '.slider-navigation',
slide : '.slide',
equalHeight : true,
speed : 300
});
});
- container -
<ul>
containter class. - navigation - class for navigation line.
- slide - class one slide.
- speed - speed of transition to new slide.
- equalHeight - sets the height of each cell is the largest cell.
$('#slider').trigger('rebuild');
$('#slider').on('slidechange', function(e, a){
// a - value of index current slide.
console.log(a);
});
var slideIndex = 4;
$('#slider').trigger('slideTo', slideIndex);