(node, duration)
| 355 | } |
| 356 | |
| 357 | function blockTransitions(node, duration) { |
| 358 | // we use a negative delay value since it performs blocking |
| 359 | // yet it doesn't kill any existing transitions running on the |
| 360 | // same element which makes this safe for class-based animations |
| 361 | var value = duration ? '-' + duration + 's' : ''; |
| 362 | applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]); |
| 363 | return [TRANSITION_DELAY_PROP, value]; |
| 364 | } |
| 365 | |
| 366 | function blockKeyframeAnimations(node, applyBlock) { |
| 367 | var value = applyBlock ? 'paused' : ''; |
no test coverage detected