Alternating repeater


how do you make a repeater that alternates like the above/ customise each container in a repeater??