(animationDuration: number)
| 418 | }; |
| 419 | |
| 420 | const duration = (animationDuration: number) => { |
| 421 | /** |
| 422 | * CSS Animation Durations of 0ms work fine on Chrome |
| 423 | * but do not run on Safari, so force it to 1ms to |
| 424 | * get it to run on both platforms. |
| 425 | */ |
| 426 | if (!supportsWebAnimations && animationDuration === 0) { |
| 427 | animationDuration = 1; |
| 428 | } |
| 429 | |
| 430 | _duration = animationDuration; |
| 431 | |
| 432 | update(true); |
| 433 | |
| 434 | return ani; |
| 435 | }; |
| 436 | |
| 437 | const iterations = (animationIterations: number) => { |
| 438 | _iterations = animationIterations; |