Community Questions & Answers

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...

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...

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...

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...

373 views
asked 7 months ago by L F
last activity 7 months 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...

Click event after translate

I have a view and want to translate it when click it. ~~~ var myView = Ti.UI.createView({ backgroundColor:'#f00', width: 100, height: 100 }); win1.add(myView); myView.addEventListener('click', function() { var tr = Ti.UI.create2DMatrix(); tr =...

Changing image dimensions have skewing issues

Titanium Mobile SDK 1.8.2 iPhone SDK 4.3 Hi, I am animating a photo via eventlistener but the result skews the maximized photo. Am not sure if this is a good practice to detect size dimensions but here goes my code: ~~~ photo01.addEventListener('click',...

How to animate objects on load

Hi, I am using tabgroup to hold the windows. I am able to animate the objects on the 2nd and 3rd tabs using eventlisteners. When the tab is tapped, the window opens up and the objects then get animated. My problem now is how do I get to animate the...

Issue animating 2 buttons.

I'm using 2 buttons just for a simple test of Titanium mobile animations. Basically, a button would simply just move up from it's current position and if the second button already has been moved up, it'll come back down. Clicking on the second button...

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(),...

Start Animation

Hey, I like to run an image down and when its at the bottom, it should reset and start from top again. But if I take the animation method the reset also animates, although it shouldnt. My code: var aktTop = 0; win1.addEventListener('click',...

Syntax issue with .animate options

I have to begin by saying that in the short time I've been using this product, I am VERY impressed. Keep up the good work. My questions is a bit stupid, related to syntax, but I can't find an example in the docs. I use a lot of imageview.animate in my...

Tabgroup state not persistent in iOS

hey all. In one of my tabs I have a button that uses a FLIP to reveal a different view. If I switch to the flipped view and then change to another tab then back to that tab, I see the default tabs view instead of the flipped view. I've never seen this...

Specify views dynamically for transitions

Hello all, I have a 'book' scenerio where I'm trying to track my previous and next pages (views) using dynamic variables. It works fine if I specify a view to open statically but I need be able to do this dynamically. Seems the 'view' attribute only...

Showing 1-50 of 92 1 2