The easiest way to transition multiple properties is to use “all” as the property to be transitioned. This can have unintended side effects since every property change will be transitioned and each transition will have the same duration. Instead, Rachel demonstrates how to use the transition property to create a comma-delimitated list of transitions - each with their own duration and delay.
- We've transitioned one property but what if…we want to transition even more?…Alright, let's take a look.…I'm going to transition the ball's color.…So let's say we want to change the ball's color to,…(Rachel sings)…We want to change it's background color to red.…I'm a big fan of the color red.…So how could we get it there?…Well one thing we could which our lovely friend online…asked about was we could do something like transition all.…
That worked, that transitions all the properties.…So in any property changes, it's going to get transitioned.…Now the downside is, this means that any property…that changes will get transitioned.…So let's say I wanted to also modify…something else about it…like give it a border of one pixel…and solid and black.…But I didn't intend for that to,…I didn't intend for that to animate.…
But it's going to, it's going to be transitioned.…It's going to animate anyway.…So as you can see when you use transition all,…sometimes it can result in interesting animations.…Everything is going to be animated, any change…
Note: This course was created by Frontend Masters. It was originally released on 09/15/2016. We're pleased to host this training in our library.
- CSS transitions and animations
- Using animation in product design
- Creating a sprite animation with CSS
- Stateful transitions and supplemental animations
- Using developer tools to manipulate animations
- Jump cuts and in-betweening
- Static vs. dynamic animations
- Designing performant animations
Skill Level Intermediate
Design the Web: CSS Animated Rolloverswith Chris Converse29m 46s Beginner
Design the Web: SVG Rollovers with CSSwith Chris Converse23m 47s Beginner
1. CSS Transitions
2. CSS Animations
3. Animation in Design
4. Stateful Animations
- 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.Cancel
Take 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.