Skill Wiki v0.1.0
rule @community/rule-smooth-scroll-css

Smooth Scroll Css

Always set scroll-behavior: smooth on the html element for anchor navigation, paired with @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } } — this is the complete CSS-native smooth scroll solutio…

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
4 out · 1 in
Tokens
135/361/683
$ prime install @community/rule-smooth-scroll-css

Projection

Always in _index.xml · the agent never has to ask for this.

SmoothScrollCss [rule] v1.0.0

CSS scroll-behavior: smooth is universally supported (all modern browsers), runs on the compositor thread, and costs 0 bytes — it should be the default for anchor link navigation before reaching for Lenis or GSAP ScrollSmoother.

Always set scroll-behavior: smooth on the html element for anchor navigation, paired with @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } } — this is the complete CSS-native smooth scroll solution for 2026, requiring 0 KB of JS.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-smooth-scroll-css/atom.yaml

Compiled at 2026-05-07