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

Fix Reduced Motion example #6288

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Conversation

piaskowyk
Copy link
Member

Summary

Previously, animations were defined in the global scope, so if they were run once, they couldn't be run again. I simply replaced static animations with a lambda that creates a new animation every time.

before after
Screen.Recording.2024-07-17.at.23.01.48.mov
Screen.Recording.2024-07-17.at.23.02.11.mov

Test plan

Run ReducedMotion example

@piaskowyk piaskowyk requested a review from szydlovsky July 17, 2024 21:08
Copy link
Contributor

@szydlovsky szydlovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works about right 👍

@piaskowyk piaskowyk added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit 1339278 Jul 19, 2024
5 checks passed
@piaskowyk piaskowyk deleted the @piaskowyk/fix-reduced-motion-example branch July 19, 2024 09:44
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.

2 participants