Lesson 35 of 50
cssCSS Accessibility – Focus Styles & Reduced Motion
9 mins
Course progress70%
What you'll learn
Keep this idea in mind as you work through the lesson.
Lesson 35 of 50
css9 mins
Keep this idea in mind as you work through the lesson.
Make sure interactive elements are clearly focusable.
:focus-visible { outline:2px solid #ff6600; }
Respect user system preferences:
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration:0.001ms !important; transition:none !important; }
}