MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / duration

Function duration

core/src/utils/animation/animation.ts:420–435  ·  view source on GitHub ↗
(animationDuration: number)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

updateFunction · 0.70

Tested by

no test coverage detected