- [Instructor] Great.…Now that we have the animation in place,…I wanna add one more property…that I want to vary,…and I wanna change the opacity of the unchosen elements…so that they appear to be more dim than the chosen one.…So let's go back over to our source code,…and I'm going to add one more property…to this animation block.…All right, I'm gonna go down to the unchosen elements,…and I'm gonna change their opacity.…I'm gonna make them, when they're done,…their opacity should be 25%.…Now, in the keyframes,…I'm gonna go with the starting opacity of one…to the final opacity,…which is .25, 25%.…
And let's go back over to our browser.…Refresh.…Now you'll notice that they dim,…and that's the effect I was looking for.…The other thing I wanna show…while we're looking at this…is it's not as easy to see…when you're using a half second animation,…but there's a rate of change for these properties.…The size doesn't change linearly.…In this case, the default animation…uses what's called easing.…So easing is a function…that says how fast this value's gonna change.…
AuthorW. Scott Means
- Creating a dynamic layout with flexbox
- Navigating the DOM
- Adding animation
- Controlling animations with classes
- Applying CSS to SVG
Skill Level Intermediate
Web Portfolio Projects: Binding and Propagationwith Leigh Lawhon1h 9m Intermediate
What you should know1m 4s
1. Building a Foundation
2. HTML Layout
4. Adding Animation
5. Working with SVG
- 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.