Added css transition property to moving object