mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: migrate animation-demo repo content (#5970)
This commit is contained in:
14
e2e/animation/app/css-animations/animate-css/page.ts
Normal file
14
e2e/animation/app/css-animations/animate-css/page.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { EventData, Page } from "tns-core-modules/ui/page";
|
||||
import { View } from "tns-core-modules/ui/core/view";
|
||||
|
||||
let view: View;
|
||||
|
||||
export function pageLoaded(args: EventData) {
|
||||
const page = <Page>args.object;
|
||||
view = page.getViewById<View>("view");
|
||||
}
|
||||
|
||||
export function onAnimate(args: EventData) {
|
||||
view.className = "";
|
||||
view.className = "myRubberBand";
|
||||
}
|
||||
Reference in New Issue
Block a user