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

Function blockTransitions

test/angular/1.6/angular-animate.js:337–344  ·  view source on GitHub ↗
(node, duration)

Source from the content-addressed store, hash-verified

335}
336
337function blockTransitions(node, duration) {
338 // we use a negative delay value since it performs blocking
339 // yet it doesn't kill any existing transitions running on the
340 // same element which makes this safe for class-based animations
341 var value = duration ? '-' + duration + 's' : '';
342 applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]);
343 return [TRANSITION_DELAY_PROP, value];
344}
345
346function blockKeyframeAnimations(node, applyBlock) {
347 var value = applyBlock ? 'paused' : '';

Callers 3

angular-animate.jsFile · 0.70
closeFunction · 0.70
applyBlockingFunction · 0.70

Calls 1

applyInlineStyleFunction · 0.70

Tested by

no test coverage detected