- [Instructor] Just like view animations and transitions,…key frame animations have their own option effects.…Let's go to the top of our bounce image view with key frames…and into the options parameter…for our overarching key frame animation.…Right now we've only got repeat…so we're going to add a comma and use dot notation…to start looking at each option.…Now all of our options start with calculation…so we can see here that we have five modes.…CalculationModeCubic, Paced,…Linear, Discreet and CubicPaced.…
Now let's start with Linear…since this deal with how to interpolate…or move between each key frame.…Let's save this and run and see how our animation changes.…All right now we won't see too much difference…with the linear calculation mode…because our animation is already fairly smooth and even.…However let's replace calculationModeLinear…with calculationModeDiscreet.…
Now Discreet is simply going to jump from…key frame to key frame without any easing at all.…So in essence Discreet and Linear modes…are the opposite sides of the same coin.…
Author
Released
4/18/2018- How animations fit into the view controller lifecycle
- Writing simple view animations
- Making use of animation options
- Adding spring animations
- Working with keyframes
- Using calculation modes
- Animating constraint values
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome56s
-
What you should know1m 21s
-
Exercise files42s
-
-
1. Getting Started
-
Starter project review1m 45s
-
-
2. Animation Basics
-
Simple view animations5m 7s
-
View animation options2m 50s
-
Chapter challenge1m 12s
-
Chapter solution3m 12s
-
-
3. Springs and Transitions
-
Adding spring animations5m 47s
-
View transitions, part 13m 48s
-
View transitions, part 27m 15s
-
Custom button animations3m 53s
-
Chapter solution2m 40s
-
-
4. Working with Keyframes
-
Keyframe animations7m 6s
-
Using calculation modes1m 49s
-
Chapter solution2m 38s
-
5. Auto Layout and Beyond
-
Animating constraint values4m 22s
-
Working with dynamic views6m 11s
-
Chapter solution2m 34s
-
-
Conclusion
-
Next steps1m 1s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Using calculation modes