/** * @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 '../private_import_core'; class _NoOpAnimationDriver implements AnimationDriver { animate( element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string, previousPlayers: AnimationPlayer[] = []): 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, previousPlayers?: AnimationPlayer[]): AnimationPlayer; }