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.
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.