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

🐛 [Story a11y] Reduced motion should apply the animation's last frame to the elements #34466

Merged
merged 67 commits into from
Jul 2, 2021

Conversation

mszylkowski
Copy link
Contributor

@mszylkowski mszylkowski commented May 20, 2021

Closes #34443

If prefers-reduced-motion, still creates the animation manager.

On maybeStartAnimations, check if prefers-reduced-motion and if so, call maybeApplyLastAnimationFrame. This calls Animation.finish() or Animation.pause (if animation is infinite).

Demo at https://stories-demos-matias.web.app/examples/amp-story/amp-story-animation.html

reduced-motion.mp4

mszylkowski and others added 30 commits April 6, 2021 12:58
Copy link
Member

@alanorozco alanorozco left a comment

Choose a reason for hiding this comment

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

Thank you for your patience on the back and forth. LGTM!

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.

[Story a11y] Reduced motion breaks layouts with animate-in
5 participants