Closed gyurmey2 closed 12 months ago
Hi,
I can not reproduce your issue with the thumbnails. What browser are you using? If you wish, you can check if user "Prefers Reduced Motion" and then disable zoom animation, etc.
I can not reproduce your issue with the thumbnails. What browser are you using?
I can't reproduce the problem now either, so I suppose the problem was on my end.
If you wish, you can check if user "Prefers Reduced Motion" and then disable zoom animation, etc.
Thanks! I tried to do it in CSS but without success. Do you mean JS?
Yes, something like this:
const isReduced = window.matchMedia(`(prefers-reduced-motion: reduce)`) === true || window.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true;
Fancybox.bind('[data-fancybox="gallery"]', {
Images : {
zoom: !isReduced
}
});
Thank you, but I don't really know how to reduce the motion in the example below.
Carousel: {
transition: 'slide', // With no preference motion
transition: 'false', // With reduce motion preference
}
Almost any option accepts a function, so, just return a function that returns boolean value, e.g., transition : () => { return false; }
Describe the bug
Hi, I noticed two problems.
Taking this opportunity, I would like to ask if there is any way to reduce the motion using the Prefers Reduced Motion? Like with Parvus.js?
Thanks!
Reproduction
https://jsfiddle.net/2xn4crd5/8/
Additional context
No response