/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {AnimationPlayer} from '@angular/core'; import {AnimationKeyframe, AnimationStyles, NoOpAnimationPlayer} from '../../core_private'; class _NoOpAnimationDriver implements AnimationDriver { animate( element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer { return new NoOpAnimationPlayer(); } } /** * @experimental */ export abstract class AnimationDriver { static NOOP: AnimationDriver = new _NoOpAnimationDriver(); abstract animate( element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer; }