Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Not every CSS property can accept transitions. In order to transition a property, it needs to be an animatable property.
Resources
- List of animatable CSS properties – MDN
- Animatable properties – W3C
- Animatable properties demo – by Lea Verou
- transition-property – MDN
Video review
- Only animatable properties can be transitioned with CSS.
- A CSS property is animatable only when the browser can define a middle transitioning state for it.
- If a property has an identifiable halfway point, it can accept a transition.
Transition challenge
Select the .photo-overlay
div and create a transition that changes an overlay's opacity from 0
to 1
when you hover over it, then fades back to 0
when you hover away.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up