html {
scroll-behavior: smooth;
}
Explanation: This single line of CSS makes all anchor links and programmatic scrolls smooth and animated. It's a subtle but impactful improvement to user navigation.
html {
scroll-behavior: smooth;
}
Explanation: This single line of CSS makes all anchor links and programmatic scrolls smooth and animated. It's a subtle but impactful improvement to user navigation.
Top comments (0)