The pause() method of the Web Animations API's Animation interface suspends playback of the animation.
pause()
MDN Reference