Smooth state animations with animation-play-state