0
0
Tailwindmarkup~20 mins

Duration and timing curves in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Transition Timing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Tailwind's transition duration utility
Which Tailwind class sets the transition duration to 500 milliseconds?
Aduration-5
Bduration-50
Cduration-500
Dduration-1500
Attempts:
2 left
💡 Hint
Look for the class that matches the number of milliseconds directly.
📝 Syntax
intermediate
1:30remaining
Correct Tailwind timing function class for ease-in-out
Which Tailwind class applies the ease-in-out timing function to a transition?
Aease-in-out
Bease-in
Cease-out
Dease-linear
Attempts:
2 left
💡 Hint
The class name matches the timing function name exactly.
rendering
advanced
2: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>
ABoth buttons change color at the same speed throughout the transition.
BBoth buttons start slow and speed up at the end.
CThe ease-in button changes color at a constant speed; the linear button starts slow and speeds up.
DThe linear button changes color at a constant speed; the ease-in button starts slow and speeds up.
Attempts:
2 left
💡 Hint
Think about how linear and ease-in timing functions affect speed over time.
selector
advanced
1: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?
Atransition duration-1000 ease-out
Btransition duration-100 ease-out
Ctransition duration-100 ease-in-out
Dtransition duration-1000 ease-in
Attempts:
2 left
💡 Hint
Duration is in milliseconds; 1 second equals 1000 milliseconds.
accessibility
expert
2: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>
AAdd <code>motion-safe:duration-0</code> to the button's class list.
BAdd <code>motion-reduce:transition-none</code> to the button's class list.
CAdd <code>motion-safe:transition-none</code> to the button's class list.
DAdd <code>motion-reduce:duration-0</code> to the button's class list.
Attempts:
2 left
💡 Hint
Think about the media query that targets users who want reduced motion.