We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The zoom animation is a big object quickly enlarging and moving on the screen; this may cause a problem for certain users.
https://css-tricks.com/introduction-reduced-motion-media-query/
Conditionally set the transition-duration to 0ms when prefers-reduced-motion media query is reduce.
transition-duration
prefers-reduced-motion
reduce
An immediate solution is to force a 1ms onto the class. For some reason, 0ms will not work: it can zoom in, but will not zoom out.
1ms
0ms
@media (prefers-reduced-motion: reduce) { .medium-zoom-image { transition-duration: 1ms !important; } }
(Tested with gatsby-remark-images-medium-zoom )
gatsby-remark-images-medium-zoom
The text was updated successfully, but these errors were encountered:
Thanks for the feature request!
Providing 0ms doesn't work because the library code relies on the transitionend event to clean up after zooming out.
transitionend
Do you mind sending a PR?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The problem
The zoom animation is a big object quickly enlarging and moving on the screen; this may cause a problem for certain users.
https://css-tricks.com/introduction-reduced-motion-media-query/
Solution
Conditionally set the
transition-duration
to 0ms whenprefers-reduced-motion
media query isreduce
.Implementation
An immediate solution is to force a
1ms
onto the class. For some reason,0ms
will not work: it can zoom in, but will not zoom out.(Tested with
gatsby-remark-images-medium-zoom
)The text was updated successfully, but these errors were encountered: