Challenge - 5 Problems
Transition Timing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Tailwind's transition duration utility
Which Tailwind class sets the transition duration to 500 milliseconds?
Attempts:
2 left
💡 Hint
Look for the class that matches the number of milliseconds directly.
✗ Incorrect
The class duration-500 sets the transition duration to 500ms. Other options represent different durations.
📝 Syntax
intermediate1:30remaining
Correct Tailwind timing function class for ease-in-out
Which Tailwind class applies the
ease-in-out timing function to a transition?Attempts:
2 left
💡 Hint
The class name matches the timing function name exactly.
✗ Incorrect
The class ease-in-out applies the ease-in-out timing function, which starts slow, speeds up, then slows down.
❓ rendering
advanced2:00remaining
Visual effect of different timing curves
You have two buttons with the same transition duration but different timing functions: one uses
ease-linear and the other uses ease-in. What difference will you see when hovering over them?Tailwind
<button class="transition duration-700 ease-linear bg-blue-500 hover:bg-blue-700 text-white px-4 py-2 rounded">Linear</button> <button class="transition duration-700 ease-in bg-green-500 hover:bg-green-700 text-white px-4 py-2 rounded">Ease-In</button>
Attempts:
2 left
💡 Hint
Think about how linear and ease-in timing functions affect speed over time.
✗ Incorrect
The ease-linear timing function changes properties at a constant speed. The ease-in timing function starts slow and then speeds up during the transition.
❓ selector
advanced1:30remaining
Choosing the correct Tailwind class for a 1 second transition with ease-out
Which Tailwind class combination correctly applies a 1 second transition duration with an ease-out timing curve?
Attempts:
2 left
💡 Hint
Duration is in milliseconds; 1 second equals 1000 milliseconds.
✗ Incorrect
The class duration-1000 sets the duration to 1000ms (1 second), and ease-out applies the correct timing curve.
❓ accessibility
expert2:30remaining
Ensuring accessible transition timing for users with motion sensitivity
You want to respect users who prefer reduced motion in their system settings. Which Tailwind approach correctly disables transitions for these users?
Tailwind
<button class="transition duration-500 ease-in-out hover:bg-red-500">Click me</button>Attempts:
2 left
💡 Hint
Think about the media query that targets users who want reduced motion.
✗ Incorrect
The motion-reduce prefix applies styles when the user prefers reduced motion. Setting transition-none disables transitions for these users, improving accessibility.