using transition.duration