changed css to transitions