-
Notifications
You must be signed in to change notification settings - Fork 77
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
product page - gallery zoom photoswipe #436
product page - gallery zoom photoswipe #436
Conversation
@JBLach The idea is to implement photoswipe fullscreen gallery, with zoom capabilities etc. Check my implementation here - https://eshop-blanco.cz/drezy-s-odkapem/17943-kuchynsky-drez-blanco-faron-xl-6-s-antracit-4020684703345.html |
Hi @Hlavtox, |
IMO it would be better to just use the zoom directly on the main image container without opening it on full screen backdrop on mobile. Only on desktops there should be option to open big size image besides zooming. |
@SharakPL Try it on my store, you can zoom properly by gestures, swipe to change images, double tap to zoom in and out, it shows image description on the bottom etc. |
I did, but it still loads new full screen carousel which on mobile doesn't really change anything apart from disabling access to the thumbs below main image. IMO it should provide this zoom-in feature on doubletap directly in the main image container and full screen feature should be restricted to desktop size only. |
@SharakPL How can you say that it doesnt change anything 😁
|
Here's what I mean by zooming inside image container. But that's just how I would like it in my theme. Your way is perfectly fine to me 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should accept this solution. It's cleaner than using a third-party library.
WDYT @Hlavtox? Maybe we could have it configurable or something.
@kpodemski I wanted to do a real gallery plugin with zooming, swipe etc. :( |
@Hlavtox and that's cool, but it should be configurable IMHO |
Tbh I like it, and you could create a tutorial on the storybook to explain how you would use a third party library to achieve a more powerful feature @Hlavtox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm merging it. I think we all agree that it is an improvement, and I don't want @JBLach PR to be stale for the next half a year, especially since no one is motivated to propose a different version.
This would be nice to implement in the future for product gallery https://codepen.io/argyleink/pen/dyLNgpX 🤩 Doesn't animate on Firefox yet |
As long as it is completely opt-in instead of opt-out. |
display flex
to the class active in slider, it looks wrong. below is an exampleActive class with display: flex;
bug.mp4
Active class without display: flex;
correct.mp4
Appearance after changes
how-it-works.mp4
Mobile view