Answer the question
In order to leave comments, you need to log in
List of standard animations for iOS?
Good day everyone.
Looking for descriptions of more or less standard animations in iOS. To clarify: I am a developer, the designer asks for a list of more or less easily implemented animation whistles, so that later I don’t swear at them when they are implemented. From the point of view of the developer of such tutorials, it’s over the roof, and I can write one myself, but from the point of view of the design, I didn’t manage to google anything.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
For [UIView transitionFromView:view toView:...], see enum UIViewAnimationOptions.
If about CATransition.type, then kCATransitionFade and next to them.
Also s.m. UIModalTransitionStyle and UIModalTransitionStyle (for use with [UIViewController presentModalViewController:...]).
Just give the designer lists of enum elements / constant names - he will understand :)
Basically, these are accelerated movements and turns. The standard duration of the animation is 0.3 s
In principle, you can make any perversion, but describe to him as preferable and easily implemented those that can be done in one step using +[UIView beginAnimations]
PS: changing the aspect ratio of an element just cannot be animated, so it should be avoided.
Well, from the "forbidden" pageCurl, pageUnCurl, rippleEffect - this is for CATransition.type.
I've been using them for many years, Apple hasn't caught on. The only "tricky" thing in the code:
transition.type = ;
}
NSArray *times = [NSArray arrayWithObjects:@(0.0), @(0.3), @(0.44), @(0.58), @(0.58 + 0.14), @(0.58 + 0.14 * 2), @(1.0), nil];
CAKeyframeAnimation *keyFrameAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform"];
keyFrameAnimation.values = scales;
keyFrameAnimation.keyTimes = times;
keyFrameAnimation.duration = 0.7;
keyFrameAnimation.calculationMode = kCAAnimationLinear;
keyFrameAnimation.removedOnCompletion = YES;
[layer addAnimation:keyFrameAnimation forKey:@"transform"];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question