Skip to content

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