Challenge - 5 Problems
Transition Timing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
What does the
ease-in timing function do in CSS transitions?Choose the best description of how the
ease-in timing function affects the speed of a transition.Attempts:
2 left
💡 Hint
Think about the word 'in' as the start of the transition.
✗ Incorrect
The ease-in timing function causes the transition to begin slowly and then accelerate towards the end.
📝 Syntax
intermediate2:00remaining
Which CSS code correctly applies a
cubic-bezier timing function for a transition?Select the CSS snippet that correctly uses a
cubic-bezier timing function to make a transition ease in and out.CSS
div {
transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}Attempts:
2 left
💡 Hint
Remember the syntax requires commas between the four numbers.
✗ Incorrect
The cubic-bezier function requires exactly four comma-separated numbers between 0 and 1.
❓ rendering
advanced2:00remaining
What visual effect will this CSS produce on a button hover?
Given the CSS below, what will the user see when they hover over the button?
CSS
button {
background-color: blue;
transition: background-color 1s ease-out;
}
button:hover {
background-color: green;
}Attempts:
2 left
💡 Hint
Think about what
ease-out means for the speed of the transition.✗ Incorrect
The ease-out timing function makes the transition start fast and slow down at the end, so the color change begins quickly and finishes gently.
❓ selector
advanced2:00remaining
Which CSS selector targets elements with a transition timing function of
linear?Assuming you want to style only elements that have a
transition-timing-function set to linear, which selector is valid?Attempts:
2 left
💡 Hint
Think about how to select elements by inline style attribute content.
✗ Incorrect
Only attribute selectors can select elements by inline style content. Option D uses [style*='transition-timing-function: linear'] to find elements whose style attribute contains that text.
❓ accessibility
expert2:30remaining
How can you ensure a CSS transition with a timing function does not cause accessibility issues for motion-sensitive users?
Which approach best respects users who prefer reduced motion when using CSS transitions with timing functions?
Attempts:
2 left
💡 Hint
Think about how CSS can detect user preferences for reduced motion.
✗ Incorrect
The prefers-reduced-motion media query allows disabling transitions for users who want less motion, improving accessibility.