[ALOY-792] Builtins: Add flip animation
|Affected Version/s||Alloy 1.2.0|
|Fix Version/s||Alloy 1.3.0|
DescriptionI'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.
I'll attach a PR for this.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);
- Fokke Zandbergen 2013-08-15 The PR: https://github.com/appcelerator/alloy/pull/223
- Tony Lukasavage 2013-08-17
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
- Federico Casali 2013-10-10 Verified working as expected. All unit tests passing (Android, iOS and MobileWeb) Test case updated. TiSDK 3.2.0.v20131010124846 Alloy 1.3.0