Skip to content

Instantly share code, notes, and snippets.

View resource11's full-sized avatar

Kathleen McMahon resource11

View GitHub Profile
@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;
}
}
@resource11
resource11 / autolink-headers-in-gatsby-mdx-files
Last active January 26, 2020 00:37
gatsby-config.js settings to generate autolinked headers in MDX files