Skip to content

Instantly share code, notes, and snippets.

@resource11
resource11 / Accessible-smooth-scrolling
Last active December 10, 2023 17:04
A CSS snippet for leveraging a smooth scroll behavior in an accessible manner
/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
:root {
scroll-behavior: smooth;
}
}