Re: [css-houdini-drafts] [css-animationworklet] Use prefer-reduced-motion in some examples (#903)

I have provided at least to examples for how to use `prefer-reduced-motion` with AnimationWorklet.

A - Use similar to Web Animations to control if and what type of animation needs to be played. I believe this is the most common pattern. 

B - Pass it to animator as part of options so that animator logic can be customized. This is probably the minority of cases. Right now my example causes the animation to reach its final frame immediately when user prefers reduced motion. This is probably not a great example since it is better to just not create the animation in this case (i.e., use method A). Need a better example where we still want some customization but reduced motion.



-- 
GitHub Notification of comment by majido
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/903#issuecomment-503590413 using your GitHub account

Received on Wednesday, 19 June 2019 14:41:02 UTC