showing results for - "slick slider direction event 2c slick 2c currentslide 2c nextslide previousslide"
Matthew
08 Jun 2016
1
2// On swipe event
3$('.your-element').on('swipe', function(event, slick, direction){
4  console.log(direction);
5  // left
6});
7
8// On edge hit
9$('.your-element').on('edge', function(event, slick, direction){
10  console.log('edge was hit')
11});
12
13// On before slide change
14$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
15  console.log(nextSlide);
16});
17