Updated background color transition animations.
Converted function declarations to function expressions.