Fancybox chage 'friction' and 'wheel' fail #256
Unanswered
colormango
asked this question in
Q&A
Replies: 1 comment
-
Hi, First, your JavaScript code will not execute, because you have added Then your code syntax is not correct, it should be like this: Fancybox.bind("[data-fancybox]", {
Carousel :{
friction: 0.8,
},
Image: {
Panzoom: {
zoomFriction: 0.7,
wheel: slide,
maxScale: function () {
return 5;
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://jsfiddle.net/softcns/gdj1vf09/2/
<script> Fancybox.bind("[data-fancybox]", { Carousel :{ friction: 0.8, }, Image: { Panzoom: { zoomFriction: 0.7, wheel: slide, maxScale: function () { return 5; }, }, }, }); </script>I try to change 'friction' to 0.8 and change the 'wheel' to slide, but it still not working both.
Beta Was this translation helpful? Give feedback.
All reactions