added css transition in top div