Files
NativeScript/apps/app/ui-tests-app/animation/layout-stack-height.ts
Vasil Chimev 66d631ebca Revert "Revert "feat(animation): support animating width/height properties (WIP) (#4917)" (#5136)"
This reverts commit 8973a6febde4a4b41637d80b17506a7d25ffebf8.
2019-05-07 13:58:07 +03:00

13 lines
334 B
TypeScript

import * as view from 'tns-core-modules/ui/core/view';
export function tapLabel(args) {
const clicked: view.View = args.object;
const graffiti = clicked as any;
clicked.animate({
height: graffiti.toggle ? 64 : 128,
duration: 200,
curve: 'easeOut'
});
graffiti.toggle = !graffiti.toggle;
}