Skip to content
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

Disable snow on prefers-reduced-motion #1

Closed
Maingron opened this issue Nov 1, 2020 · 1 comment
Closed

Disable snow on prefers-reduced-motion #1

Maingron opened this issue Nov 1, 2020 · 1 comment
Labels
Accessibility enhancement New feature or request

Comments

@Maingron
Copy link
Owner

Maingron commented Nov 1, 2020

DIsable the script / Don't even run it when the users requests reduced motion.
This can help people that get nausea or anxious from the snow, especially from the jittering.

This should be possible through CSS @media screen and (prefers-reduced-motion: reduce) { } or maybe even through Javascript. If it's possible to get three values (no motion; less motion; normal), maybe disable the jitter on less motion and disable the snow entirely on no motion.

@Maingron Maingron added Accessibility enhancement New feature or request labels Nov 1, 2020
@Maingron
Copy link
Owner Author

Maingron commented Nov 3, 2020

Added in Version 1.2.0. Also added a notice in example.html.

@Maingron Maingron closed this as completed Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant