Im using Slick Slider (http://kenwheeler.github.io/slick/) for my slider and try to put the current slide into the caption.
Code:
var $el = $('.mgu-basic-slider');
$el.on('init'), function() {
console.log('dd');
}
$el.slick({
dots:false,
adaptiveHeight: true,
arrows : true
})
$el.on('reInit afterChange', function(event, slick, currentSlide, nextSlide){
var i = (currentSlide ? currentSlide : 0) + 1;
$( ".slick-counter" ).text(i + '/' + slick.slideCount);
});
It seems, that the inti-function doesn't work, any idea why? Thanks for help