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

Function playPause

test/angular/1.5/angular-animate.js:1352–1367  ·  view source on GitHub ↗
(playAnimation)

Source from the content-addressed store, hash-verified

1350 // not be paused since that is not possible. If the animation ends when
1351 // paused then it will not complete until unpaused or cancelled.
1352 var playPause = function(playAnimation) {
1353 if (!animationCompleted) {
1354 animationPaused = !playAnimation;
1355 if (timings.animationDuration) {
1356 var value = blockKeyframeAnimations(node, animationPaused);
1357 if (animationPaused) {
1358 temporaryStyles.push(value);
1359 } else {
1360 removeFromArray(temporaryStyles, value);
1361 }
1362 }
1363 } else if (animationPaused && playAnimation) {
1364 animationPaused = false;
1365 close();
1366 }
1367 };
1368
1369 // checking the stagger duration prevents an accidentally cascade of the CSS delay style
1370 // 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