(node, duration)
| 668 | } |
| 669 | |
| 670 | function blockTransitions(node, duration) { |
| 671 | // we use a negative delay value since it performs blocking |
| 672 | // yet it doesn't kill any existing transitions running on the |
| 673 | // same element which makes this safe for class-based animations |
| 674 | var value = duration ? '-' + duration + 's' : ''; |
| 675 | applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]); |
| 676 | return [TRANSITION_DELAY_PROP, value]; |
| 677 | } |
| 678 | |
| 679 | function blockKeyframeAnimations(node, applyBlock) { |
| 680 | var value = applyBlock ? 'paused' : ''; |
no test coverage detected