use css classes for metric color and animation