* Creates and starts animation with a single segment. Returns AnimationPlayer * object that can be used to monitor or control animation. * * @param {!Node} contextNode The context node. * @param {!TransitionDef<?>} transition Transition to animate. * @param {TimestampDef} duration Dur
(contextNode, transition, duration, opt_curve)
| 32 | * @return {!AnimationPlayer} |
| 33 | */ |
| 34 | static animate(contextNode, transition, duration, opt_curve) { |
| 35 | return new Animation(contextNode) |
| 36 | .setCurve(opt_curve) |
| 37 | .add(0, transition, 1) |
| 38 | .start(duration); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * @param {!Node} contextNode |
no test coverage detected