Menu
  • HOME
  • TAGS

Adding animated layer on video using CAKeyframeAnimation

objective-c,avfoundation,calayer,cakeyframeanimation,avassetexportsession

I've finally managed to fix this issue by changing calculationMode to kCAAnimationLinear. This seems to be a silly issue, but I hope it may be useful for someone.

CAKeyframeAnimation - Animating an Array of Images creates a huge allocation after completion

ios,objective-c,xcode,uiimage,cakeyframeanimation

SOLVED I found the problem. As gabbler was saying there was not a leak problem. The problem was a high allocation of Images. I was releasing the array with the images, however, the images did not disappear from memory. So finally I found the problem: [UIImage imageNamed:@""]; From method definition:...

Animation Along a Path with CAKeyframeAnimation

objective-c,core-animation,quartz-core,cgpath,cakeyframeanimation

Since you are creating the path using the planet bounds, the path will be relative to the planet position, but because your ship is not at the same point, it will move starting from its position. One quick way to fix it would be to move the ship to the...

Swift CAKeyframe Animation not displaying images

objective-c,animation,swift,uiimageview,cakeyframeanimation

This line is never going to work: animation.values = animationImages Change it to: animation.values = animationImages.map {$0.CGImage as AnyObject} The reason is that you are trying to animate the "contents" key of this layer. But that is the contents property. But the contents property must be set to a CGImage,...

CAKeyframeAnimation not visible on video

ios,xcode,video,calayer,cakeyframeanimation

It finally has nothing to do with PhotoScroll. The CAKeyFrameAnimation.removedOnCompletion is by default set on YES. When it is added to the CALayer, its confusing the videoexport. So by setting it to NO, CAKeyFrameAnimation is visible on the animation. NSMutableArray* animationArray = [NSMutableArray array]; UIImage*img1 = [UIImage imageWithContentsOfFile:path]; [animationArray addObject:(__bridge...

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

html,css,css3,animation,cakeyframeanimation

You need to specifiy 100% of something..in this case, the html/body * { margin: 0; padding: 0; } html, body { height: 100%; } div { background: tomato; width: 100px; height: 100px; -webkit-animation: animateThis 1s ease-in; -webkit-animation-fill-mode: forwards; } @-webkit-keyframes animateThis { 0% { width: 100px; height: 100px; } 100%...