MCPcopy Create free account
hub / github.com/angular-ui/ui-router / playPause

Function playPause

test/angular/1.6/angular-animate.js:1358–1373  ·  view source on GitHub ↗
(playAnimation)

Source from the content-addressed store, hash-verified

1356 // not be paused since that is not possible. If the animation ends when
1357 // paused then it will not complete until unpaused or cancelled.
1358 var playPause = function(playAnimation) {
1359 if (!animationCompleted) {
1360 animationPaused = !playAnimation;
1361 if (timings.animationDuration) {
1362 var value = blockKeyframeAnimations(node, animationPaused);
1363 if (animationPaused) {
1364 temporaryStyles.push(value);
1365 } else {
1366 removeFromArray(temporaryStyles, value);
1367 }
1368 }
1369 } else if (animationPaused && playAnimation) {
1370 animationPaused = false;
1371 close();
1372 }
1373 };
1374
1375 // checking the stagger duration prevents an accidentally cascade of the CSS delay style
1376 // being inherited from the parent. If the transition duration is zero then we can safely

Callers 1

startFunction · 0.70

Calls 3

blockKeyframeAnimationsFunction · 0.70
removeFromArrayFunction · 0.70
closeFunction · 0.70

Tested by

no test coverage detected