itchief/ui-components

Reverse autoplay

natalyanacondus opened this issue · 2 comments

Hello there!
Really appreciate your job - its really cool!
But maybe u can answer is it possible to make reverse autoplay in slider?

Hi!
Added this feature to the slider.

Via data attributes:

<div class="itc-slider" data-slider="itc-slider" data-loop="true" data-direction="prev">...</div>

Via JavaScript:

ItcSlider.getOrCreateInstance('.itc-slider', {
  autorun: true,
  interval: 5000,
  loop: true,
  direction: 'prev', // default 'next'
});

Thank u sooo much !!!