Usage:
// Import the fader mixin
@import "colorFader";
// Apply to an ID (or class)
#colorFaderDIV {
background: red;
-webkit-animation: colorfader linear infinite;
-webkit-animation-duration: 90s;
-webkit-animation-iteration-count: infinite;
-moz-animation: colorfader linear infinite;
-moz-animation-duration: 90s;
-moz-animation-iteration-count: infinite;
-o-animation-iteration-count: infinite;
color: #fff;
}
// Set the list of colors to cycle through
$colorList: #76c261 #fdc345 #f8943 #e65453 #a759a8 #32afe2;
// Call the fader, passing in the animation name and colors
@include colorFader(colorfader, $colorList);