I have some list, and im moving on it by clicks – animating right, left. Also change some class for recognize position and actions. I need to stop animate proces when last three elements of list will be have specify class. So i do this, but it works for only last third back element. Can u help me?
if (!js_films_list_top.find('li').eq(-3,-2,-1).hasClass('focus')){
js_short_movies_list.animate({left: '-=241'}, 300);
}
Thx for help.
.eqonly takes one argument. If you want to select multiple at a time, try this:OR try