Community Questions & Answers

Animate Veiw Height From 0

I'm having serious issues with what should be a very straight forward problem in Titanium Mobile 1.8.1. I have a view with height 0. I then wish to animate that view to open up and display the contents. If this was jQuery, I'd be able to use .slideDown(),...

animation not working !

Application type: mobile Titanium SDK: 3.3.0GA Platform & version: iOS 7.1 Device: iOS simulator Host Operating System: OSX 10.9.5 Titanium Studio: 3.2.3.201404181442 a simple test case: it working first but after changing direction one more times...

Sliding between two labels

Hi, Im trying to simulate a slide effect between two views which alternates. the idea is as follow : the label1 has a first text. when I click on a button, the label2 which is offscreen at the right gets a new text, then label1 and label2 go left so that...

Window slide out animation problem

Hey folks! I've got a weird problem with the animation of windows. First of all: Because of a special customer wish, I cant use tabgroups and have to open each window for itself with an own navigation bar. I have recorded a video to show the problem:...

Alloy Views

I am trying to make a simple slideover menu with a menu button to call over the menu View in Alloy. I have tried to get the menu view to animate with no success. I can get it to work if I include all my code within one controller, but then that defeats...

Moving objects

I want to make a simple animation whereby a certain image view moves from static position then to the left at a given duration. I am able to use the codes below and successfully moved the object from 0 position to left. But the problem is when it stops the...

Move window to left in android

Hi, i have 2 open windows in the bottom i have a left menu and in the front i have the content of the aplication. When i click in a menu button the front window have an animation to the left and i can see the menu, but in android I can't move the window. I...

how to animate a object outside the screen?

I'm build to iPhone and I need to make a little visual animations... I want to move a label outside the screen when I touch a button... I'm trying to do this: ~~~ label2.animate({ duration: 300, right: -300 }) ~~~ but don't seems to work... someone...

MapView Animation TypeError

Hi, i try to animate the MapView on Android Emulator. But i get the error "Uncaught TypeError: Property 'animate' of object [object view] is not a function" Im a little bit confused, because in the API-Description there is a property with the...

opening a window with a view above the window, using negative top values (works in ios, can't find a way in android).

Question: ======= I am making something similar to the nightshade or android pulldown, or whatever they are respectively called. I got it working perfectly on ios, and nearly perfectly on android. The problem is, getting the window to start in the upper...

"Masking" or hiding overflow from a view?

Hi I'm trying to create a photo gallery that slides between images, to do this I was hoping I could have an internal view/label that hides content that doesn't fit (i.e. the width of the view is 200, but the actual width of the content inside is 300). I...

Andriod Animation problem

Hi Titaniums .. i use the example of animation to move box from point to point in my andriod application BUT the box move in wrong direction and after end the animate box back to right position that should move to in first place ..!!!! any idea...

Animate container of views

Hi, I have a view that contains three other views. Is there any way to animate the container with all its content OR should I animate any single view contained inside the container? I'm doing the last thing because I thought that by animating the container...

Animate with percentage values

I'm trying to move a view 100% to the left, however when I use a percentage it seems to only move it 100 pixels instead. For example ~~~ var slideNext = Titanium.UI.createAnimation({ left: '-100%', duration : 500 }); ~~~ The view I'm moving has a width...

Animation Examples?

Hi All, I've seen a few code snippets referring to "Animate". I was wondering if there is a place where I can see a view examples of the style of animations that people have successfully achieved using Appcelerator? Maybe a youtube clip...

935 views
asked 2 years ago by L F
last activity 2 years ago

Animate multiple times

Hi all, I have two views that I want to animate multiple time. From left to right. This is my code inside a interval: ~~~ if (counter % 5 == 0) { if (i == 0) { alert('LEFT'); x.animate({ left : 5, duration :...

View animation

I have two views and on click of first view I have changed the position of those view using animate property. Here is my sample code given below. ~~~ var win = currentWindow; var view1 = Ti.UI.createView({ width:100, height:20, left :...

How to stop animation

I can't seem to stop my object from animating using the code below. There are two conditions based on whether the animate or stop button is clicked. Is there another solution? ~~~ // Spin the image var t = Ti.UI.create2DMatrix(); var spin =...

swipe not always detected

hi all i work on ipad application. i want to animate my view 250px to the left on detecting swipe direction my code is ~~~ view.addEventListener('swipe', function(e) { //alert(e.direction); if (e.direction=="left"){ ...

module: animate custom property

Hi, I created a custom module (android) with a property angle. When i do ~~~ view.angle = 0.5; ~~~ my property is correctly updated and so is my view. Now i would like to use ~~~ view.animate({angle:0.5f, duration: 200}); ~~~ but it does nothing What do...

Showing 1-50 of 106 1 2 3