Challenge - 5 Problems
Transition Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:00remaining
What does the CSS
transition property do?Choose the best description of what the
transition property controls in CSS.Attempts:
2 left
💡 Hint
Think about how colors or sizes can change gradually on hover.
✗ Incorrect
The
transition property allows CSS property changes to happen smoothly over a set duration, creating animations without JavaScript.📝 Syntax
intermediate1:30remaining
Which CSS
transition shorthand is correct?Select the correct CSS syntax for a transition that changes the
background-color over 0.5 seconds with ease-in timing.Attempts:
2 left
💡 Hint
The order is: property, duration, timing-function.
✗ Incorrect
The correct order for the
transition shorthand is property name, duration, then timing function.❓ rendering
advanced2:00remaining
What will you see when hovering over this box?
Given the CSS below, what visual effect happens when you hover over the box?
CSS
div {
width: 100px;
height: 100px;
background-color: blue;
transition: width 1s ease;
}
div:hover {
width: 200px;
}Attempts:
2 left
💡 Hint
Look at which property is listed in the transition and what changes on hover.
✗ Incorrect
The
width property changes from 100px to 200px on hover, and the transition makes this change smooth over 1 second.❓ selector
advanced1:30remaining
Which CSS selector applies a transition only to links inside a
nav element?Choose the selector that applies a transition effect only to
<a> elements inside a <nav>.Attempts:
2 left
💡 Hint
Think about how to select all links inside a nav, not the other way around.
✗ Incorrect
The selector
nav a targets all <a> elements inside any <nav> element, applying the transition correctly.❓ accessibility
expert2:00remaining
Why should you be cautious using
transition on prefers-reduced-motion users?What is the best practice regarding CSS transitions for users who prefer reduced motion?
Attempts:
2 left
💡 Hint
Consider users who get dizzy or uncomfortable with animations.
✗ Incorrect
Respecting the
prefers-reduced-motion media query helps make websites accessible by disabling or reducing animations for sensitive users.