NoopAnimationPlayer
class
An empty programmatic controller for reusable animations. Used internally when animations are disabled, to avoid checking for the null case when an animation player is expected.
class NoopAnimationPlayer implements AnimationPlayer { constructor(duration: number = 0, delay: number = 0) parentPlayer: AnimationPlayer | null totalTime: number onStart(fn: () => void): void onDone(fn: () => void): void onDestroy(fn: () => void): void hasStarted(): boolean init(): void play(): void pause(): void restart(): void finish(): void destroy(): void reset(): void setPosition(position: number): void getPosition(): number }
Subclasses
See also
-
animate()
-
GroupPlayer
Constructor
|
duration | Type: Optional. Default is |
delay | Type: Optional. Default is |
Properties
Property | Description |
---|---|
parentPlayer: AnimationPlayer | null | |
totalTime: number | Read-only. |
Methods
onStart() | ||
---|---|---|
|
fn | Type: |
Returns
void
onDone() | ||
---|---|---|
|
fn | Type: |
Returns
void
onDestroy() | ||
---|---|---|
|
fn | Type: |
Returns
void
hasStarted() |
---|
|
init() |
---|
|
play() |
---|
|
pause() |
---|
|
restart() |
---|
|
finish() |
---|
|
destroy() |
---|
|
reset() |
---|
|
setPosition() | ||
---|---|---|
|
position | Type: |
Returns
void
getPosition() |
---|
|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/animations/NoopAnimationPlayer