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

Global switch for enabling/disabling animations #218

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

singintime
Copy link
Contributor

@singintime singintime commented Jul 2, 2024

Motivation

Allowing developers that use react-flip-toolkit and/or flip-toolkit to enable and disable FLIP animations globally. This may be needed for several reasons, both aesthetic and functional. A notable use case is the implementation of reduced motion preferences directly on the web page instead of relying on OS preferences.

Proposed changes

This PR adds a global switch to enable/disable animations across all Flipper instances, both in and out of React land. This makes it possible to implement custom reduced motion settings, not necessarily tied to OS preferences and the prefers-reduced-motion media query.

@aholachek aholachek merged commit 4d906e2 into aholachek:master Jul 4, 2024
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.

None yet

2 participants