animation

Why animating custom CALayer properties causes other properties to be nil during animation?

I have a custom CALayer (say CircleLayer), containing custom properties (radius and tint). The layer renders itself in its drawInContext: method. - (void)drawInContext:(CGContextRef)ctx { NSLog(@"Drawing layer, tint is %@, radius is %@", self.tint, self.radius); CGPoint centerPoint = CGPointMake(CGRectGetWidth(self.bounds)/2, C...

Simulating a candle flame in Objective C

As part of a current project I've been asked to display a candle onscreen. Users should be able to tilt the device to tilt the flame, and perform an action (eg. tap) to blow out the flame. I'm at a real loss on how to achieve this. Some ideas I've had: purchase a movie of a candle from a stock video site. This won't let me tilt or blow...

custom repeating of translation animation in android

Hi I'm doing animation of spinning with different images (like horizontal roulette) one image at a time from left to right over the screen. At every animation cycle I need to change image to random from the list, so I found if I use repeating animation then setting new ImageResource on onAnimationRepeat of AnimationListener doesn't upd...

How to position a view off-screen so that it can be Animated to move on-screen?

I have a RelativeLayout filling the screen and a couple of ImageView positioned on it using LayoutParams margins. These ImageView are animated in different ways, and in one case I want an image to "fly in" to the screen from the right. Unfortunately, if I set leftMargin for that ImageView greater than the width of the screen, it does no...

Bing maps two-way binding to Center property. Animation problem

Hi folks, There is an example of two-way binding to Center property from Micrsoft guys. You can find it here. Its sample works fine, but they disabled full animation. When I set AnimationLevel="Full" and use the Compass I get trembling picture. I really like aminations effects and don't want to turn it off. Are there any ways to get ...

A problem with setTimeout

I recently asked a question about the same function, that solved my probelem and directed me to a tutoraial because I was using a while loop, this meant that my function did not animate, just freeze then resize. This new way, using setTimeout should work. The only thing is that it just snaps to the new size rather than animating to it. T...

Animate new rows in ListView with a CursorAdapter

Does anyone have any suggestions for doing this? At the moment, a new row gets added to the database and I call requery(). I'd like any new rows to animate when they show up for the first time. Many row additions will happen in the middle of the list, and not at the top or bottom. I'd like these to animate somehow so the user can see...

WPF - How do I make a UI element animate along a path of an ellipse?

I have a canvas that contains a couple other elements. I need this canvas to animate continuously along a circular (elliptical) path. How can I do this in XAML? ...

JQuery animation in IE 8

I am making an animated opening for a site, no flash, very simple, animation of opacity fade up of background layer, then logo grows out of image into position, then I show (slide in) the remaining divs. For some crazy reason, I have been unable to get this to work in IE 8. Works fine in Chrome and FF on Mac and PC. I haven't tested in ...

Javascript - animation stops as new one is started

Hi all, I have a UL on a page and on the click of a button I am appending an li and fading it in. This works fine for single clicks. However, when the button is clicked twice, the first animation immediately stops and the second completes. I have setup a test page to demonstrate this: http://anttears.co.uk/test (the test page has been t...

Animated Themes for Windows XP

How do I create an animated theme for windows XP? I know how to create normal themes, but can't seem to find anythoing on adding animation. This is what I need: The Start menu should be themed like an iPhone, so I slide to lock/unlock the start menu. Any ideas? ...

iphone animation: How can I move a UIView with animation where the movement accelerate and slow down?

Hello all. In UIScrollView, we can scroll the view and it has a accelerate and decelerate effects, also including bouncing. Can anyone tell me how to animate view's move like that? say, I have a imageview on screen, if I want to "throw" this imageview to somewhere, how can I animate the movement of the imageview with that accelerate f...

Rendering text animations into a video file in Cocoa

Hello Everyone, I am after the following functionality in an app I am scoping. A user has the option to enter some set of text that will be overlaid onto a video file as animated text. In other words, the application is bundled with a stock version of the video containing no text, and the custom text entered by the user is used to rende...

animation in android

i have an app with 2 activity. the first one have next button, the second have previous button. I use an animation on activity switching (use overridePendingTransition) and it is ok. But now, I want to edit effect of that animation. My idea is: when i click on next button, app will go to second activity (i dont care about animation). And...

Why doew my viewController do the action with wrong direction?

Why my viewController run the action with UIViewAnimationTransitionCurlUp sometims is Horizontal and sometimes Vertical? ...

Animate visibility modes, GONE and VISIBLE

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i want to do: view show/hide element I can show and hide, but im not following how can i animate the sliding correctly....:( Heres my xml: ...

iPhone - UINavigationController - custom animation with CATransaction

I am trying to create a category for UINavigationController so I can put together a few custom animations. I came across this question and it got me started. I've come up with the following for a push function: - (void)pushViewControllerMoveInFromBottom:(UIViewController *)viewController { [CATransaction begin]; CATransition *tr...

Rotating a UIImageView greater than 180 degrees in an animation

I'm trying to create an animated meter (like the gas tank in your car). I can't seem to get CGAffineTransformMakeRotate to rotate past 180. I've attempted to do it in 2 separate animations (eg: rotate 180 degrees and then rotate the remaining degrees) but it looks terrible since the timing of the total animation changes frequently on use...

UIView animations completion block firing when an other animation begins

I use the block base API for my animations on iOS. One animation has a completion block and that block is called at the end of the animation, nice. However, that animation can be fired multiple times when the user scrolls (the animation is on a UITableViewCell). When that happens the the completion block is called multiple times. The ...

Jquery PHP Top 10 animated

Hi, I'm wondering if this could be achieved. I know how to get the top 10 from my database using SQL. But I would like to take it a step further. My idea is to update the DIV every couple of seconds. First the script will check if there are any updates in the database, if so the DIV should be updated. I can do this on my own, but my ...