Files
NativeScript/e2e/ui-tests-app/app/animation/height-basic-page.ts
Nathan Walker 8100cf7089 chore: cleanup
2020-07-11 11:06:36 -07:00

18 lines
405 B
TypeScript

import { Label } from "@nativescript/core";
let toggle = false;
export function animateHeight(args) {
const clicked = args.object as Label;
clicked
.animate({
height: toggle ? 128 : "100%",
duration: 200,
curve: "easeInOut"
})
.then(() => {
clicked.text = toggle ? "Cool." : "Tap here";
});
toggle = !toggle;
}