- Here's what I came up with…as a solution for our challenge.…I've got our robot moving in multiple directions,…and repeating a number of times.…So let's take a look at the CSS behind my solution.…First of all, I added some keyframes,…adding a 20%, 35%, and 90% keyframe…to make my robot kind of move back and forth…a little bit, before it moved all the way across the screen,…and then stutter back and forth a bit more,…to kind of give it that indecisive robot feel.…I changed my animation iteration count to four,…so it repeats four times,…and I also have my animation direction alternating,…so we get a bit of back and forth,…and the two ends stuttering back and forth…kind of meet up together.…
I also used a custom cubic bezier function…for the timing function.…I picked something a little bit similar to ease it out,…but just a little bit flatter,…since there's so much moving going on with our robot,…I didn't want the easing to be too distracting.…Hopefully, you came up with something similar…for your solution.…There's no single right answer for this challenge,…
Author
Released
1/21/2016Web designer Val Head introduces CSS transforms and transitions—the foundation of most CSS animations—and shows how to keyframe simple animations and adjust their timing, fill, and direction. She also covers looping and chaining animations, animating HTML and SVG elements, and optimizing animation performance, and introduces the best tools and use cases for CSS animation. Start watching to get your brand in motion.
- Using CSS transforms and transitions
- Working with animation-delay and animation-fill-mode
- Timing and easing CSS animations
- Animating elements in place
- Animating sprite images
- Animating CSS transforms and transitions
- Chaining multiple animations
- Animating SVG images
- Creating high-performance CSS animations
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 26s
-
-
1. Overview of CSS Transitions and Transforms
-
CSS transform basics4m 15s
-
Simple 3D transforms4m 6s
-
CSS transitions4m 15s
-
-
2. Understanding CSS Animations
-
Animation basics5m 53s
-
Timing functions and easing7m 53s
-
-
3. CSS Animation Building Blocks
-
Animate 3D transforms5m 46s
-
Chain multiple animations5m 44s
-
4. Applying CSS Animations to SVG
-
Export SVG from Illustrator5m 37s
-
Animate SVG with CSS7m 25s
-
5. Performance, Browser Support, and Fallbacks
-
When to use CSS animations5m 28s
-
High-performance animations4m 48s
-
-
6. Tools for Creating CSS Animations
-
Conclusion
-
Next steps39s
-
- 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: Solution: Adding keyframes to our animation