What is reduced motion support in web development?
Reduced motion support means designing websites to respect users' preferences to minimize animations and motion effects, helping those sensitive to motion feel comfortable.
Click to reveal answer
beginner
How can you detect if a user prefers reduced motion using CSS?
Use the @media (prefers-reduced-motion: reduce) media query to apply styles that reduce or remove animations and transitions.
Click to reveal answer
intermediate
In Bootstrap, how can you respect reduced motion preferences?
Bootstrap includes utilities and respects prefers-reduced-motion by disabling or simplifying animations when the user prefers reduced motion.
Click to reveal answer
beginner
Why is it important to support reduced motion in websites?
Supporting reduced motion helps users with vestibular disorders or motion sensitivity avoid discomfort or nausea caused by excessive animations.
Click to reveal answer
intermediate
Which CSS property is commonly adjusted to reduce motion effects?
Properties like animation, transition, and transform are often reduced or disabled to minimize motion.
Click to reveal answer
Which CSS media query detects if a user prefers reduced motion?
A@media (motion-preference: low)
B@media (no-motion)
C@media (prefers-reduced-motion: reduce)
D@media (reduce-motion: true)
✗ Incorrect
The correct media query is @media (prefers-reduced-motion: reduce) to detect reduced motion preference.
Why should websites support reduced motion preferences?
ATo improve loading speed
BTo help users sensitive to motion avoid discomfort
CTo make animations more colorful
DTo increase font size automatically
✗ Incorrect
Supporting reduced motion helps users sensitive to motion avoid discomfort or nausea caused by animations.
In Bootstrap, how are animations affected when reduced motion is preferred?
AAnimations are disabled or simplified
BAnimations become more complex
CAnimations run faster
DAnimations change color
✗ Incorrect
Bootstrap disables or simplifies animations to respect the user's reduced motion preference.
Which CSS properties are commonly reduced to support reduced motion?
Acolor and background
Bborder and margin
Cfont-size and line-height
Danimation and transition
✗ Incorrect
Animation and transition properties are commonly reduced or disabled to minimize motion effects.
What is a real-life reason to respect reduced motion preferences?
ATo avoid causing dizziness or nausea
BTo save battery life
CTo make websites load slower
DTo increase website traffic
✗ Incorrect
Respecting reduced motion helps avoid dizziness or nausea for users sensitive to motion.
Explain how you would use CSS to support users who prefer reduced motion on a website.
Think about a CSS media query that targets motion preferences.
You got /3 concepts.
Describe why reduced motion support is important and how Bootstrap helps with it.
Consider health reasons and Bootstrap's built-in features.
You got /3 concepts.
Practice
(1/5)
1. What is the main purpose of using @media (prefers-reduced-motion: reduce) in Bootstrap?
easy
A. To increase the speed of all animations on the page
B. To detect if the user prefers fewer animations for accessibility
C. To add more animations for visual appeal
D. To change the color scheme based on user preference
Solution
Step 1: Understand the media query purpose
The media query @media (prefers-reduced-motion: reduce) checks if the user has requested reduced motion in their system settings.
Step 2: Connect to accessibility goals
This helps improve accessibility by reducing or disabling animations that might cause discomfort or distraction.
Final Answer:
To detect if the user prefers fewer animations for accessibility -> Option B
Quick Check:
Reduced motion media query = detect user preference [OK]
Hint: Look for user preference detection in media queries [OK]
Common Mistakes:
Thinking it speeds up animations
Assuming it adds more animations
Confusing it with color scheme changes
2. Which of the following is the correct syntax to start a CSS block that applies styles only when the user prefers reduced motion?
easy
A. @media (prefers-reduced-motion: no-preference) { }
B. @media (motion-preference: reduce) { }
C. @media (prefers-reduced-motion: reduce) { }
D. @media (prefers-motion: reduce) { }
Solution
Step 1: Recall the exact media query syntax
The correct media query to detect reduced motion preference is @media (prefers-reduced-motion: reduce).
Step 2: Compare options
@media (prefers-reduced-motion: reduce) { } matches the exact syntax. Other options have incorrect property names or values.
Final Answer:
@media (prefers-reduced-motion: reduce) { } -> Option C
The media query must have parentheses around the feature: @media (prefers-reduced-motion: reduce).
Step 2: Identify the missing parentheses
The given code misses parentheses, so the media query is invalid and ignored by browsers.
Final Answer:
Missing parentheses around the media feature -> Option A
Quick Check:
Media queries require parentheses [OK]
Hint: Always wrap media features in parentheses [OK]
Common Mistakes:
Forgetting parentheses in media queries
Using wrong CSS selectors
Thinking animation:none is invalid
5. You want to improve accessibility by disabling Bootstrap's fade animations for users who prefer reduced motion. Which CSS snippet correctly achieves this?