Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25684

iOS: Expose UIInterpolatingMotionEffect Horizontal and Vertical

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.1
    • Fix Version/s: Release 7.3.0
    • Component/s: iOS
    • Environment:

      Xcode 9+
      Ti SDK 6.3 or 7.0

    • Story Points:
      5
    • Sprint:
      2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 09 SDK, 2018 Sprint 10 SDK

      Description

      Adds iOS homescreen like parallax effect to views based on Marcel Pociot's module https://github.com/mpociot/TiMotionEffects

      How to use it:

      var win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      var background = Ti.UI.createImageView({
      	image: 'http://web-features.net/pb-examples/rainbow-at-sea/bg.jpg',
      	horizontalMotionEffect: {
      		min: -50,
      		max: 50
      	},
      	verticalMotionEffect: {
      		min: -50,
      		max: 50
      	}
      });
      win.add(background);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              chmiiller Carlos Henrique Zinato
              Reviewer:
              Eric Wieber
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code