Incorporating motion in fragment transitions