-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[a11y] Adding reduce motion logic to LottieAnimation for compose usage (
#2542) Our changes in #2536 didn't work for `LottieAnimation` in compose. While LottieAnimation does use LottieDrawable, it has it's own animator and draws on canvas directly. This PR addresses that issue by making some logic of reduce motion readable outside LottieDrawable and consuming that logic in `LottieAnimation` I tested this by adding a sample lottie file with reduce motion marker locally, see the attached video. https://github.com/user-attachments/assets/eb33333f-86b8-46fa-9bbb-82bff8a8c7fe Co-authored-by: Pranay Airan <pranay.airan@airbnb.com>
- Loading branch information
1 parent
a1fb304
commit 66bc2fb
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters