dvtng / react-loading-skeleton

Create skeleton screens that automatically adapt to your app!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac: setting <Reduce Motion>

EnricoMariaFabbri opened this issue · comments

If mac has enabled the setting "Reduce Motion" the animation isn't showing

Hi Enrico, this is an intentional feature that we added recently.

What do you think the ideal behavior would be when the "prefers reduced motion" setting is enabled? Maybe you want the animation to play but at a slower speed.

yes it could be a nice feature

After referencing this article, we have disabled the translation animation if a user has the prefers-reduced-motion setting enabled. This will help users with motion sensitivity to use react-loading-skeleton safely.

If there is enough interest, we can add an option to allow the animation even if prefers-reduced-motion is enabled.

Closing since the currently-implemented behavior seems correct. (no animation when the user prefers reduced motion)