0
0
CSSmarkup~5 mins

Transition property in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS transition property do?
It makes changes to CSS properties happen smoothly over time instead of instantly, creating an animation effect.
Click to reveal answer
beginner
Name the four parts of the transition shorthand property.
The four parts are: property (which CSS property to animate), duration (how long it takes), timing-function (speed curve), and delay (wait time before starting).
Click to reveal answer
intermediate
What is the default value of the transition-timing-function?
The default is ease, which starts slow, speeds up, then slows down at the end.
Click to reveal answer
beginner
How do you make a background color change smoothly over 0.5 seconds using transition?
Use transition: background-color 0.5s; on the element. When the background color changes, it will animate over half a second.
Click to reveal answer
intermediate
Can you transition multiple CSS properties at once? How?
Yes, by listing them separated by commas, like transition: width 1s, height 1s; to animate width and height together.
Click to reveal answer
Which CSS property controls how long a transition animation lasts?
Atransition-timing-function
Btransition-delay
Ctransition-duration
Dtransition-property
What is the default timing function for CSS transitions?
Aease
Bease-in
Clinear
Dease-out
How do you delay a transition start by 2 seconds?
Atransition-delay: 2s;
Btransition-duration: 2s;
Ctransition-start: 2s;
Dtransition-wait: 2s;
Which value for transition-property makes all properties transition?
Aevery
Ball
Cauto
Dnone
What happens if you set transition: none; on an element?
ATransitions happen instantly.
BTransitions use default settings.
CTransitions last forever.
DNo transitions will occur.
Explain how the CSS transition property works and why it is useful.
Think about how changes happen on a webpage and how transition makes them look nicer.
You got /6 concepts.
    Describe how to create a smooth color change on a button when hovered using the transition property.
    Consider what CSS properties you change on hover and how to animate that change.
    You got /5 concepts.