Setting the scroll-behavior to smooth is preferred by most users. However, some users find this to be too slow, and prefer to have the scrolling happen instantaneously.
There exists a media rule to set CSS based on the user’s browser settings. This media rule is called prefers-reduced-motion, and expects one of the following values:
reduce
no-preference
Wrap the appropriate rule within a prefers-reduced-motion media rule such that a scroll-behavior of smooth is only set if the user’s browser setting is no-preference.
It’s nice that every one cleared the challenge, but the forum is about helping and deduct solution, It would be lovely to help people come up with the solution too. Instead of outright giving solutions