Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

enhancement: Scroll instantly when the user prefers reduced motion #1921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LeopoldTal wants to merge 1 commit into docsifyjs:develop
base: develop
Choose a base branch
Loading
from LeopoldTal:feat-respect-reduced-motion

Conversation

Copy link

@LeopoldTal LeopoldTal commented Nov 3, 2022
edited
Loading

Summary

The prefers-reduced-motion media query allows users to specify an accessibility setting for less animation.

Smooth scrolling can trigger seasickness for some users, so if the user has set this preference, scroll instantly.

No behaviour change when this preference is not set.

What kind of change does this PR introduce?

Feature

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Couldn't find any applicable doc or tests, let me know if I missed any.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

Copy link

vercel bot commented Nov 3, 2022
edited
Loading

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
docsify-preview ✅ Ready (Inspect) Visit Preview Dec 12, 2022 at 10:57AM (UTC)

Copy link

codesandbox-ci bot commented Nov 3, 2022
edited
Loading

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ca2b750:

Sandbox Source
docsify-template Configuration

@LeopoldTal LeopoldTal changed the title (削除) fix: Scroll instantly when the user prefers reduced motion (削除ここまで) (追記) feat: Scroll instantly when the user prefers reduced motion (追記ここまで) Nov 3, 2022
@LeopoldTal LeopoldTal changed the title (削除) feat: Scroll instantly when the user prefers reduced motion (削除ここまで) (追記) enhancement: Scroll instantly when the user prefers reduced motion (追記ここまで) Nov 3, 2022
@Koooooo-7 Koooooo-7 requested a review from a team November 4, 2022 10:58
Smooth scrolling can trigger seasickness for some users. The [`prefers-reduced-motion` media query](https://css-tricks.com/introduction-reduced-motion-media-query/) allows these users to specify an accessibility setting for less animation, e.g. instant scrolling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /