I should also mention that I don't want to force the content editor to make decision on which CSS classes to use for a given page.
Say my layout has 6 tiles arranged in this fashion. I only wish for the top 6 pages returned by the repeater/viewer to be displayed in this tile layout. Say I have a set of CSS classes to provide this layout: sm-tile, md-tile, lg-tile. 1st page get assigned class="sm-tile", 2nd page gets assigned class="lg-tile", and so on...
The transformation logic then will assigned the css class during page generation, based on the index position of the page.... Is this the best way of doing this?