MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / animate

Function animate

packages/core/ui/core/view/view-common.ts:1166–1171  ·  view source on GitHub ↗
(animation: any)

Source from the content-addressed store, hash-verified

1164 }
1165
1166 public animate(animation: any): AnimationPromise {
1167 const animationInstance = this.createAnimation(animation);
1168 const promise = animationInstance.play();
1169 (promise as AnimationPromise).cancel = () => animationInstance.cancel();
1170 return promise as AnimationPromise;
1171 }
1172
1173 public createAnimation(animation: any): Animation {
1174 if (!this._localAnimations) {

Callers 1

startAnimationForTypeMethod · 0.85

Calls 2

playMethod · 0.65
cancelMethod · 0.65

Tested by

no test coverage detected