Revert "Revert "feat(animation): support animating width/height properties (WIP) (#4917)" (#5136)"

This reverts commit 8973a6febd.
This commit is contained in:
Vasil Chimev
2017-12-07 12:17:54 +02:00
committed by Martin Yankov
parent 2f3070c8cd
commit 66d631ebca
24 changed files with 943 additions and 47 deletions

View File

@@ -0,0 +1,12 @@
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;
}