Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24356] iOS: Add missing animation transitions (top to bottom, bottom to top, cross-dissolve)

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-02-14T19:21:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2017-01-30T20:02:10.000+0000
Updated2017-02-22T21:44:49.000+0000

Description

There are 3 missing animation transition options we should expose to have all possible animation transitions available in the SDK.

Comments

  1. Hans Knöchel 2017-01-30

    PR: https://github.com/appcelerator/titanium_mobile/pull/8804 Test-Case:
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       var view = Titanium.UI.createView({
           backgroundColor: 'red'
       });
       
       var view2 = Titanium.UI.createView({
           backgroundColor: 'blue'
       });
       
       var animation = Titanium.UI.createAnimation();
       animation.duration = 1000;
       animation.view = view2;
       
       var btn1 = Ti.UI.createButton({
           title: 'Animate 1',
           top: 40
       });
       
       btn1.addEventListener('click', function() {
           animation.transition = Ti.UI.iOS.AnimationStyle.FLIP_FROM_TOP;
           view.animate(animation);
       });
       
       var btn2 = Ti.UI.createButton({
           title: 'Animate 2',
           top: 80
       });
       
       btn2.addEventListener('click', function() {
           animation.transition = Ti.UI.iOS.AnimationStyle.FLIP_FROM_BOTTOM;
           view.animate(animation);
       });
       
       var btn3 = Ti.UI.createButton({
           title: 'Animate 3',
           top: 120
       });
       
       btn3.addEventListener('click', function() {
           view2.backgroundColor = (view2.backgroundColor == 'yellow') ? 'blue' : 'yellow';
           animation.transition = Ti.UI.iOS.AnimationStyle.CROSS_DISSOLVE;
           view.animate(animation);
       });
       
       win.add(view);
       win.add(btn1);
       win.add(btn2);
       win.add(btn3);
       win.open();
       
  2. Lee Morris 2017-02-22

    Can verify this fix using the following environment; iPhone 7 and Simulator (10.2) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.1.0.v20170220091247 Appc NPM 4.2.8 Appc CLI 6.2.0-12 Ti CLI 5.0.11 Alloy 1.9.6 Arrow 1.10.2 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source