Updated animation script for color and animation intervals.