Simply check <img> length:

loop: $('.item img').lenght > 2 ? true : false,

https://jsfiddle.net/rkLvx3zy/2/

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top