()
| 189 | * the animation's elements. |
| 190 | */ |
| 191 | const cleanUpElements = () => { |
| 192 | if (supportsWebAnimations) { |
| 193 | webAnimations.forEach((animation) => { |
| 194 | animation.cancel(); |
| 195 | }); |
| 196 | |
| 197 | webAnimations.length = 0; |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | /** |
| 202 | * Removes the animation's stylesheets |