Z
Z
Zombie426792018-03-23 20:46:42
css
Zombie42679, 2018-03-23 20:46:42

How to set the last active element in owl carousel to a class?

What am I doing wrong?

https://jsfiddle.net/bjnz4y8e/3/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-03-23
@webinar

https://jsfiddle.net/bjnz4y8e/14/

N
newaitix, 2018-03-23
@newaitix

$('.owl-carousel .owl-item').eq(sbAllItms-1)
The index is one less than the count. Since the index starts from zero

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question