Add style on every third entry
You can cycle your loop.index0 property if you really need to add a class 

{{ cycle(['first', 'second', 'last'], loop.index0) }}


If the other elements don't need a class insert an empty value ''

You can as well check for a specific value of your loop.index0

However if you just want to add certain style attributes you can use the nth selector