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
0
votes
2 answers

Manipulating UIImageView During Animation with CAKeyframeAnimation

I need to move object (UIImageView) from point A to point B, then rotate image at point B by 180 degrees to face the opposite direction and move object from B to A (backwards). I have the code below which moves from A to B. I also know how to rotate…
Vad
  • 3,658
  • 8
  • 46
  • 81
0
votes
0 answers

CAKeyframeAnimation combine animation in scenekit

I'm play around with the CAKeyframeAnimation in order to better understanding how this type of animation work. I want to move my SCNnode in a square shape and at every corner rotate his eulerangle Y of 90 degrees to make it follow the orientation of…
Damiano Miazzi
  • 1,514
  • 1
  • 16
  • 38
0
votes
1 answer

Interrupt and reverse CAKeyframeAnimation

I have a checkbox view that can be checked or unchecked. I would like to animate the drawing of the checkmark and to do so, I am using a CAKeyframeAnimation and drawing on a CAShapeLayer. This works fine, but I would also like to be able to support…
0
votes
1 answer

How do I set an endpoint for a CAKeyFrameAnimation?

I am using an arc for a progress bar. There is a track layer that the progress indicator moves along and I also have a circle that moves with the progress bar for added emphasis. Both the progress bar and the circle move correctly along the path…
forrest
  • 10,570
  • 25
  • 70
  • 132
0
votes
1 answer

iOS - Spinner to a circular view

I am trying to add spinner effect to a circular view. func spin() { let circlePathLayer = CAShapeLayer() circlePathLayer.fillColor = nil circlePathLayer.strokeColor = UIColor.redColor.cgColor …
iOS
  • 3,526
  • 3
  • 37
  • 82
0
votes
1 answer

Different distance of CAAnimation object with the same speed?

I have mutiple objects to move on paths with different distance. How can I get the same speed of all objects? CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; pathAnimation.speed = 0.5; Doesn't work ;( If…
tuvok
  • 185
  • 2
  • 10
0
votes
1 answer

Call custom function after arriving first caanimation point

I want to slide in a uiimage from right (out of screen) to the middle and then from the middle to the left (out of screen). When the image arrived (first point of the animation path) in the middle I want to call a custom function. How can I realize…
tuvok
  • 185
  • 2
  • 10
0
votes
1 answer

How to detect certain rotation progress with CAKeyframeAnimation transform rotation?

I have defined a CAKeyframeAnimation to rotate a CALayer along z axis. For the animation to work, I've used the values, keyTimes and duration properties of the animation object. Below is what I've: let rotationInDegrees: CGFloat = 7 * 360.0 // 7…
nayem
  • 7,285
  • 1
  • 33
  • 51
0
votes
1 answer

CSS - remove box shadow with keyframes animation

I have an icon that initially has a box shadow set. I am animating the icon and scaling it, but I would also like to remove the shadow while I am doing it. I have tried it like this: .loading-icon { width: 80px; height: 80px; …
Leff
  • 1,968
  • 24
  • 97
  • 201
0
votes
2 answers

Forward and Reverse animating multiple DIVs in sequence using CSS

So, I have a set of boxes placed around each other. But using CSS animations I want to hide all the boxes One by One at a time, when the last box is hidden, I want to show back all the boxes but in reverse order, where last box appears first and…
Deepak Yadav
  • 6,804
  • 5
  • 31
  • 49
0
votes
1 answer

Xamarin.Forms iOS Create animation using images

I work on Xamarin.Fomrs shared project. I want to display multiple images at same place with 100 ms interval. So that it will look like a GIF. In Android It is working. I created drawable file and in that I have put all the images with time…
Monica
  • 141
  • 4
  • 16
0
votes
1 answer

Line animation in rectangle with cornerRadius

I need create line animation with constant length along rounded rectangle. So I stopped after creating needed BezierPath UIBezierPath(roundedRect: CGRect(x: 50, y: 50, width: 100, height: 100), cornerRadius: 5) so next step what I need to do is to…
YuraTR
  • 11
  • 2
0
votes
2 answers

AnimateKeyframes runs all keyframes simultaneously (Swift)

I'm trying to animate a label to change its text with different words at different keyframes, but it just skips to the last keyframe ("Good Night") without displaying the previous ones. It does print them out so I guess there is something wrong with…
Henrik
  • 69
  • 1
  • 2
  • 4
0
votes
0 answers

Cakeyframeanimation and cabasicanimation timing issue

I have animated images using cakeyframeanimations and used catextlayer animation in synchronise with the image animation. But the problem is the text animation gets synchronised on 1-2 devices and on other animations gets disturbed
Ruhi
  • 1
0
votes
1 answer

Animating the text color of a UIView extension

I have an extension of UILabel with a shake method. This method shakes the label for 2 seconds. It works great. I am trying to chain a 2 second red -> white text-color change to the label text. It does not work great. Here's my progress. extension…
Joe
  • 3,772
  • 3
  • 33
  • 64