Using hardware-accelerated transitions