0
0
Tailwindmarkup~20 mins

Blur and brightness filters in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Filter Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2:00remaining
What is the visual effect of this Tailwind class?
Look at this HTML snippet using Tailwind CSS:
<div class="blur-sm">Hello</div>

What will you see in the browser?
Tailwind
<div class="blur-sm">Hello</div>
AThe text 'Hello' appears sharp and clear with no blur.
BThe text 'Hello' is hidden and not visible.
CThe text 'Hello' appears very bright and glowing.
DThe text 'Hello' appears slightly blurred, making edges soft.
Attempts:
2 left
💡 Hint
The class 'blur-sm' applies a small blur filter to the element.
📝 Syntax
intermediate
2:00remaining
Which Tailwind class correctly applies a brightness filter of 150%?
You want to make an image brighter by 1.5 times using Tailwind CSS. Which class should you use?
Abrightness-150
Bbrightness-[150%]
Cbrightness-1.5
Dbrightness-15
Attempts:
2 left
💡 Hint
Tailwind has predefined brightness classes including brightness-150 for 150%.
selector
advanced
2:00remaining
Which Tailwind class combination applies both blur and brightness filters correctly?
You want to blur an element slightly and increase its brightness to 120%. Which class combination is correct?
Ablur-sm brightness-[120%]
Bblur-sm brightness-120
Cblur brightness-120%
Dblur-sm brightness-1.2
Attempts:
2 left
💡 Hint
Remember that brightness values above 100% require arbitrary values in Tailwind.
🧠 Conceptual
advanced
2:00remaining
What happens if you apply 'brightness-0' in Tailwind CSS?
Consider an image with class 'brightness-0'. What will be the visual result in the browser?
Tailwind
<img src="example.jpg" class="brightness-0" alt="Example image">
AThe image appears completely black (no brightness).
BThe image appears normal with no brightness change.
CThe image appears fully white (maximum brightness).
DThe image is hidden and not displayed.
Attempts:
2 left
💡 Hint
Brightness 0 means no light is visible.
accessibility
expert
3:00remaining
How can blur and brightness filters affect accessibility, and what is a good practice?
Using blur and brightness filters can impact how users perceive content. Which practice improves accessibility when using these filters?
AApply filters only on decorative images without alt text.
BAvoid using any filters because they always reduce accessibility.
CEnsure sufficient color contrast and provide clear text alternatives when filters reduce clarity.
DUse strong blur and brightness filters without fallback text or contrast adjustments.
Attempts:
2 left
💡 Hint
Think about users with vision difficulties and how filters might affect readability.