Add First , Second, Third and Fourth class sequence wise in repeated elements
var nodes = $('.team__item').length; for(i=0; i<nodes; i+=4) { $('.team__item').eq(i).find('.team__bio').addClass('first'); } for(i=1; i<nodes; i+=4) { $('.team__item').eq(i).find('.team__bio').addClass('second'); } for(i=2; i<nodes; i+=4) { $('.team__item').eq(i).find('.team__bio').addClass('third'); } for(i=3; i<nodes; i+=4) { $('.team__item').eq(i).find('.team__bio').addClass('fourth'); }