The Animation.id property of the Web Animations API returns or sets a string used to identify the animation.
Animation.id
MDN Reference