Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Transitions and Transforms!
You have completed CSS Transitions and Transforms!
Preview
With a transition delay you can control when a transition starts, which lets you create transitions that involve multiple steps.
Resources
Video review
- With
transition-delayyou can create two or more transitions and set delays to make each transition occur at different times. -
transition-delayaccepts a time value in seconds or milliseconds. -
transition-delayaccepts a comma-separated list of delay values; this lets you delay an element's transition properties individually.
For example:
.button {
...
transition-property: opacity, background, box-shadow;
transition-duration: .4s;
transition-delay: .2s, .3s, 0s;
}
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
from one set of values to another,
0:00
you use transition property to
specify which properties to animate.
0:01
And transition duration to specify
how long the transition should last.
0:05
Once you understand the basics
of CSS transitions,
0:10
you can apply optional effects that
control when a transition starts and
0:13
vary the speed of a transition to make
it look more exciting and realistic.
0:18
So, first up, let's take a look at how
you can delay the start of a transition
0:22
with the transition delay property.
0:26
To follow along using the latest
workspace, launch the workspace on this
0:29
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