[ALOY-792] Builtins: Add flip animation
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-17T01:49:40.000+0000 |
Affected Version/s | Alloy 1.2.0 |
Fix Version/s | Alloy 1.3.0 |
Components | Builtins |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Tony Lukasavage |
Created | 2013-08-15T10:51:01.000+0000 |
Updated | 2013-10-10T23:01:30.000+0000 |
Description
I've added a horizontal and vertical flip animation to transition from one view another. Both views need to be positioned on top of each other.
var animation = require('alloy/animation');
animation.flip(fromView, toView, animation.HORIZONTAL, 750, finishCallback);
animation.flip(fromView, toView, animation.VERTICAL, 750, finishCallback);
animation.flipHorizontal(fromView, toView, 750, finishCallback);
animation.flipVertical(fromView, toView, 750, finishCallback);
I'll attach a PR for this.
The PR: https://github.com/appcelerator/alloy/pull/223
PR: https://github.com/appcelerator/alloy/pull/225 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/basics/builtins Functional testing can be confirmed by running the app on all supported and ensuring that it runs successfully with all unit tests passing (with the exception of blackberry that still fails proxy unit tests for an unrelated reason). For iOS, there is additional testing.
Run the app for iOS
Click the box that says "front"
Confirm that it does a 3D horizontal flip to a view that says "back"
Click it again
Confirm that it does a 3D horizontal flip to the original "front" view
Lather, rinse, repeat until satisfied
Verified working as expected. All unit tests passing (Android, iOS and MobileWeb) Test case updated. TiSDK 3.2.0.v20131010124846 Alloy 1.3.0