• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problems with CAAnimation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems with CAAnimation


  • Subject: problems with CAAnimation
  • From: Memo Akten <email@hidden>
  • Date: Thu, 19 Mar 2009 15:13:58 +0000

Hi, I posted this on the quartz list yesterday but received no response, it seems like such a simple thing...

When I add an animation to my layer, it animates, but then snaps back to its previous position. Is this normal?

growAnimation = [[CABasicAnimation animationWithKeyPath:@"transform.scale"] retain];
growAnimation.duration = 0.25;
growAnimation.fromValue = [NSNumber numberWithFloat:1.0f];
growAnimation.toValue = [[[CardManager instance] config] objectForKey:@"cardHoverScale"];
growAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];

[rootLayer addAnimation:growAnimation forKey:nil];



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: problems with CAAnimation
      • From: Matt Long <email@hidden>
  • Prev by Date: Pointing OutlineView to a folder on the Desktop
  • Next by Date: Re: Pointing OutlineView to a folder on the Desktop
  • Previous by thread: Re: NSSegmentedControl send action only from the selected segment
  • Next by thread: Re: problems with CAAnimation
  • Index(es):
    • Date
    • Thread