Questions tagged [cakeyframeanimation]

Describes an animation that provides keyframe interpolation of a layer property in Apple's Core Animation framework.

CAKeyframeAnimation is a Core Animation animation type that provides keyframe interpolation of a layer property. Instances should be created with the initializer animationWithKeyPath:.

For more information, see the Apple Documentation for CAKeyframeAnimation.

235 questions
1
vote
1 answer

Gradually Decrease CAShapeLayer wrt radius

I have a UIImageView with image just like above so what i have to do is gradually decrease and increase the shape of the image. For achieving above task obviously I have to apply mask so I have created a rounded CAShapeLayer and added to the…
Tariq
  • 9,861
  • 12
  • 62
  • 103
1
vote
1 answer

CAKeyframeAnimation Keypath Error

I am trying to animate the transform property of a view. Here is my code: CAKeyframeAnimation *shakeAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; NSArray *transformValues = [NSArray arrayWithObjects: …
pasawaya
  • 11,515
  • 7
  • 53
  • 92
1
vote
1 answer

Using CAKeyFrameAnimation (or something else?) to make image bounce with RubyMotion

I am new to Core Animation and new to RubyMotion (have been working with Obj-C in Xcode since January). I'm needing to have the AppLabel (the png for it is specified in file called AppAppearance.rb but all animation for it loading is in this file).…
myData
  • 215
  • 1
  • 4
  • 16
1
vote
0 answers

When using CAKeyframeAnimation, is it possible not to load all keyframes upfront?

I am working on an iOS application where I have some animations that I want to play. For each animation I have all the information in a file(initial position/scale/etc.. and then one keyframe per record in the file). I am currently using…
entropy
  • 3,134
  • 20
  • 20
0
votes
1 answer

Can I animate with use multiple images instead of one?

Using core graphics, I am moving my image over a predefined path. I would like to use multiple images instead of one in order to achieve animation. Can anyone tell me how to achieve this(using multiple images instead of one)? This my code with…
suj
  • 507
  • 1
  • 8
  • 22
0
votes
1 answer

CAKeyFrameAnimation fail without any clue

Here is my code section below, I wish implement a animation on opacity to show a breath effect on a button. NSString* kAnimation = @"animation"; NSString* kBreath = @"breath"; NSString* kHide = @"hide"; NSString* kOpacity = @"opacity"; - (void)…
roby
  • 764
  • 5
  • 15
0
votes
1 answer

Why would a CATextLayer object have inconsistent CAKeyFrameAnimation?

What is intended: A button click requests that a CATextLayer object's string value is animated until being stopped by another button click request. There are two separate buttons responsible for these actions so that the actions are not…
0
votes
2 answers

CAKeyFrameAnimation not repeat

Hi I have a CAKeyFrameAnimation scale, that makes an object fade down from full size (1) to near nothing (0.01) Then this is called: - (void)animationDidStop:(CAKeyframeAnimation *)anim finished:(BOOL)flag { [self setHidden:YES]; } It seems to…
SW_Cali
  • 383
  • 2
  • 17
0
votes
1 answer

Error and warning using 'GetTiming()' function for CAKeyframeAnimation

I'm having one error and one warning concerning the usage of the 'GetTiming()' function. My colde is as follows: [values addObject:[NSNumber numberWithFloat:25.0]]; [timings addObject:GetTiming(kCAMediaTimingFunctionEaseIn)]; [keytimes…
0
votes
1 answer

How reliable [CALayer animationForKey:] is?

I have a subclass of CALayer called MyLayer: @interface MyLayer : CALayer @property (nonatomic,readonly) BOOL busy; -(void)performTask1; -(void)performTask2; -(void)performTask3; @end In performTask* functions I say: -(void)performTask* { …
debleek63
  • 1,181
  • 8
  • 17
0
votes
0 answers

CAKeyframeAnimation don't save the completed view when the animation first starts

I'm designing an animation so that the 5 objects can move at a 45 degree angle along an arc each time the red circle is clicked. However, use animation.fillMode = CAMediaTimingFillMode.forwards , but when I try the first animation, the view is not…
Mary Kim
  • 25
  • 5
0
votes
1 answer

swift animateKeyframes withRelativeStartTime not working

I want to achieve an animate: Each cell rightImage move first, and after rightImage moved, the backgroundImage(which is a gif) start to animating. However, the moving animation and gif startAnimating always start at the same time. Like the demo…
0
votes
0 answers

CAKeyframeAnimation() configured for 'scrubbing', how to smooth transition to stop points?

I'm animating an object (CAShapeLayer) along a bezier path by pausing the animation and setting the timeOffset manually, which moves it to fixed locations. But the movement is jerky. I want to be able to set the next offset and have it…
clearlight
  • 12,255
  • 11
  • 57
  • 75
0
votes
1 answer

How to do linear transition and enlarge Animation By CAKeyframeAnimation?

I want to do a linear animation like this: move the rectangle slowly to center of Screen, and tripled its size while moving. Here is my wrong code and demo, I can only do animation one by one, but I want to combine this two animation. Also, the end…
0
votes
1 answer

How to set path in CAKeyframAnimation and change cell's hierarch?

I want to achieve the effect like this: I click cell and the button's alpha become to 0, then enlarge the cell and move to center of Screen. And Here is my code and gif: **// This is my VC** class ViewController: UIViewController { override…
malcopolocei
  • 123
  • 1
  • 9