0
0
Tailwindmarkup~20 mins

Transition property selection in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Transition Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
selector
intermediate
2:00remaining
Which Tailwind class applies a transition only to the background color?
Select the Tailwind CSS class that will make only the background color smoothly change when it updates.
Atransition-transform
Btransition-opacity
Ctransition-colors
Dtransition-shadow
Attempts:
2 left
💡 Hint
Think about which property controls color changes in Tailwind transitions.
🧠 Conceptual
intermediate
2:00remaining
What does the Tailwind class transition-all do?
Choose the correct description of what transition-all does in Tailwind CSS.
AApplies transition to all animatable CSS properties
BApplies transition only to the <code>all</code> CSS property (which does not exist)
CApplies transition only to the <code>transform</code> property
DDisables all transitions
Attempts:
2 left
💡 Hint
Think about what 'all' means in CSS transitions.
📝 Syntax
advanced
2:00remaining
Which Tailwind class is correct to transition only the transform property?
Identify the correct Tailwind CSS class that applies transition only to the transform property.
Atransition-transform
Btransition-transforms
Ctransition-transforming
Dtransition-transformer
Attempts:
2 left
💡 Hint
Tailwind uses exact property names in its transition classes.
rendering
advanced
2:00remaining
What visual effect will the class transition-opacity duration-500 produce on an element?
Choose the correct description of the visual effect when an element with these classes changes its opacity.
Tailwind
<div class="transition-opacity duration-500 opacity-100 hover:opacity-50 bg-blue-500 text-white p-4 rounded">Hover me</div>
AThe element instantly changes opacity with no smooth effect
BThe element changes background color smoothly over 0.5 seconds on hover
CThe element moves position smoothly over 0.5 seconds on hover
DThe element fades smoothly from fully visible to half transparent over 0.5 seconds on hover
Attempts:
2 left
💡 Hint
Look at which property the transition applies to and the duration.
accessibility
expert
3:00remaining
Which Tailwind transition class combination best supports users who prefer reduced motion?
Select the Tailwind CSS approach that respects users' reduced motion settings while applying transitions.
AUse <code>motion-reduce:transition-all</code> and <code>motion-safe:transition-none</code>
BUse <code>transition-all</code> with <code>motion-safe:transition-all</code> and <code>motion-reduce:transition-none</code>
CUse only <code>transition-all</code> without any motion preference classes
DUse <code>transition-none</code> always to disable transitions
Attempts:
2 left
💡 Hint
Consider how Tailwind handles user motion preferences with special variants.