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
4
votes
1 answer

Animating Frame with CoreAnimation

I'm trying to animate position of some subviews in a scrollview. I want to create a specific effect as they slide in. I was just using implicit animation by changing the frame on UIView but when they slide in it looks too robotic. So I was hoping to…
dustins
  • 353
  • 5
  • 16
4
votes
1 answer

Animating a CAShapeLayer along an oval UIBezierPath

I am trying to animate a CAShapeLayer along a UIBezierPath. This works fine in circular path situations, but not when I use an oval path. The animation does happen, but pauses for a short period every time it has made a round, without me setting a…
Harold
  • 205
  • 2
  • 11
4
votes
0 answers

Paused/restarted animation does not call delegate methods

I have a CAKeyframeAnimation that calls animationDidStart: and animationDidStop:finished:, as expected, when the animation is allowed to run its course. When I pause the animation during interruptions (calls, home btn pressed, etc)…
4
votes
2 answers

iPhone: Synchronize animations on two different layers

I need to synchronize a path animation on two different layers (one is used as a mask for another layer, the other shows a graphical element that follows the path, i.e. draws the mask). If I just set them up identically, they never quite do the same…
Joseph Tura
  • 6,290
  • 8
  • 47
  • 73
4
votes
3 answers

how to animate width and height 100% using css3 animations?

I have following code HTML
css div { background: tomato; width: 100px; height: 100px; -webkit-animation: animateThis 0.3s ease-in; -webkit-animation-fill-mode: forwards; } @-webkit-keyframes animateThis { 0% { …
It worked yesterday.
  • 4,507
  • 11
  • 46
  • 81
4
votes
1 answer

How do I use keytimes in CAKeyFrameAnimation to animate the opacity of a layer?

I am trying to animate a layer so that the opacity goes from 0 to 1 in about 0.2 seconds, keep the opacity at 1 for a second, and then put the opacity back at 0. I'm trying to use key times to do it, but I can't get it right. CAKeyframeAnimation…
bbraunj
  • 153
  • 2
  • 13
4
votes
1 answer

CAKeyframeAnimation using UIImages not working

I am setting up the animation as so: self.testAnimation = [CAKeyframeAnimation animationWithKeyPath:@"TestAnimation"]; [self.animationImagesAsCGImages addObject:( id )[UIImage imageNamed:@"c1.png"].CGImage]; [self.animationImagesAsCGImages…
iOSProgrammingIsFun
  • 1,418
  • 1
  • 15
  • 32
3
votes
1 answer

Animating sequence of images with CAKeyframeAnimation

I'm trying to animate a sequence of images and this could easily be done with the simple UIImageView animation; however, I want to be able to detect when the animation is finished so I can allow user to perform another task. So I was trying to do…
P LP
  • 33
  • 4
3
votes
2 answers

How do I successfully animate multiple CALayers simultaneously?

I'm successfully animating a single layer to alter its position along an arbitrary path on my screen. I'm now attempting to replicate this animation multiple times to give the illusion of something bending round a corner. I put the code inside a…
3
votes
2 answers

Drawing a path in Photoshop/Illustrator, using it in iOS

I am looking for a more convenient way of drawing a path than by drawing it programmatically. Is there any way of drawing a path in Photoshop (or Illustrator) and getting that path to the iPhone to use in a CAKeyframeAnimation? e.g. by exporting the…
Joseph Tura
  • 6,290
  • 8
  • 47
  • 73
3
votes
2 answers

Implementing a wheel of fortune

I'm implementing a wheel of fortune inspired by other post in stackoverflow and at least it is spinning. Currently my problem is that if I swipe on the right side of the image in the down direction the wheel spins in the wrong direction. Can…
netshark1000
  • 7,245
  • 9
  • 59
  • 116
3
votes
1 answer

CAKeyframeAnimation doesNotRecognizeSelector

I'm getting a strange error with CAKeyframeAnimation, the strange part is the "SwiftDeferredNSArray doubleValue" why would I get that when dealing with an Key frame animation? I get the following trace, with these…
Chris
  • 2,739
  • 4
  • 29
  • 57
3
votes
2 answers

iPhone - How to make a circle path for a CAKeyframeAnimation?

I'm trying to make an key frame animation that lets a image view fly around a circle. I'm using CGPathAddCurveToPoint to make the key frame points. The problem is that the image view always uses the shortest (linear) route. I would like to have some…
Chris
  • 103
  • 3
  • 6
3
votes
0 answers

Move object with finger following path [Swift]

I have a circle in my view, With a little oval that can be moved around that big circle, the idea of moving the little oval is to change the time on the clock. I am trying to move the oval but only by following the path so it won't get out of the…
3
votes
2 answers

Update view's frame while it's being animated

I'm doing an animation like this: CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; animation.duration = 100.0; animation.path = self.animationPath.CGPath; [view.layer addAnimation:animation…
soleil
  • 12,133
  • 33
  • 112
  • 183
1 2
3
15 16