Zoom from non-children? #1996
-
My use case is like this: I'm using the center mode of a carousel plugin for my client's photo gallery, and clicking any carousel item should zoom PhotoSwipe. By the way, the "zoom" here refers to Because the center mode of the carousel plugin creates clones of the original carousel items, I have to define So what I need to do is: when users click a cloned carousel item, I need to programmatically zoom PhotoSwip from that cloned carousel item. Any advice would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You'll prob need to separate dom and data https://photoswipe.com/data-sources/#separate-dom-and-data or use CSS selector that doesn't involve clones. |
Beta Was this translation helpful? Give feedback.
You'll prob need to separate dom and data https://photoswipe.com/data-sources/#separate-dom-and-data or use CSS selector that doesn't involve clones.