graphql / graphql/graphql.github.io

Add smooth scrolling when clicking on section links

Open
#1,314 2 comments 0 reactions 0 assignees View on GitHub
💄 Enhancement 🚀 PR open
Dominant language
TypeScript
Stars
889
Forks
1.5k
Avg merge
4d 12h
Merged PRs (30d)
21

Description

### Description

This is a very minor improvement that could be made to the website, I noticed that when you click on a particular section, it automatically just takes you to that section. Works as intended, but You can easily get lost where you are, since it magically teleports you there. Adding smooth scrolling would help with this issue, and let the reader know where the page is taking them.

### Motivation
Mild UI improvements for the user.

### Collaboration
I can build this out. Or if someone wants to do it

### Additional Context
Example of the thing I'm talking about. It just snaps to that section, adding smooth scrolling would scroll the page to that section, so the reader doesn't get lost.
![Animation](https://user-images.githubusercontent.com/70502771/202878120-8b8072d6-2425-4682-a9e9-e5afd9546e10.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.