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

Add the ability to override the operating system's reduced motion settings #228

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

singintime
Copy link
Contributor

Motivation

This PR provides a setting to override the reduced motion preference of the operating system. This can be useful in case react-flip-toolkit is used for animations that convey semantic information (e.g. loading spinners), and therefore shouldn't be disabled.

Proposed changes

Instead of a boolean flag, the activation toggle now accepts three possible string values: "on", "off", and "system". "On" and "off" enable and disable FLIP animations under any circumstance, respectively. "System" is the default value, and respects the reduced motion preferences set in the operating system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant