adding css transition