refactor: migrate animation-demo repo content (#5970)

This commit is contained in:
Manol Donev
2018-06-19 18:58:11 +03:00
committed by GitHub
parent f9b0f6268d
commit d79ac300f3
56 changed files with 4393 additions and 6 deletions

View 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";
}