Understanding CSS Transitions And Class Timing