[RFC] Add Smooth Scrolling transition to the Table of Contents. #1352
Replies: 1 comment 2 replies
-
Thanks for the detailed write up and demo links @SatanshuMishra! Appreciate the care taken putting together this proposal. I think on balance we’d prefer not to add this as the default behaviour. A few reasons:
|
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.15.2
What is your idea?
For context, when I mention
Table of Contents
, the following section is what I am talking about:To make navigating via the Table of Contents smoother. Instead of the page snapping to a section when clicking it's section link on the Table of Contents, add a simple scrolling effect that smooth scrolls the page to the linked section.
Why is this feature necessary?
While this change is purely aesthetic, eliminating the abrupt and often jarring scroll jumps in favour for smooth scrolling would make the navigating via the Table of Contents more user friendly and make the docs more visually appealing.
Do you have examples of this feature in other projects?
The following are examples of the intended behaviour. While the aesthetics of these pages may not match that of Starlight, my idea is to combine the behaviour seen in these examples with the pre-existing Table of Contents in Starlight:
Participation
Beta Was this translation helpful? Give feedback.
All reactions