Animating with Snap svg

I’m trying to get each of these boxes of colour to blink different colours. Do you know what’s the animation function I can use for this