implemented css transition