Creating Your First Transition with transition-duration8:45 with Guil Hernandez
You can create a transition by simply defining how long the transition should last. This is called the transition duration.
- Transitions can alter the appearance of an element when a state change happens.
- In order to transition a property, you need a start value and an end value.
transition-durationproperty is a required property for CSS transitions.
transition-durationsets the length of time of the transition; the property accepts a time unit of seconds or milliseconds.
To specify a duration in milliseconds, add a period before the number value. For example:
Sometimes you may see millisecond values defined using the
ms CSS time unit. For instance, the value
.4s is equivalent to:
You need to sign up for Treehouse in order to download course files.Sign up