How to enable horizontal carousel on the zoomed lightbox view on both desktop and phone?

How to enable horizontal carousel on the zoomed lightbox view on both desktop and phone?

Futurisnow
Excursionist
14 0 5

I got some code to reduce the HUGE size of the images in the zoom feature on product pages... 

I had to add this code to Theme.liquid... and that worked. 

 

<style>
.product-media-modal__content.color-background-1.gradient,
.product-media-modal__content.color-background-1.gradient img {
padding-left: 0;
max-height: 90vh;
padding-right: 0;
}

.product-media-modal__content.color-background-1.gradient img {
max-height: 90vh;
object-fit: contain;
width: 95vw;
}
</style>

 

Now, images are full screen which is good... but on desktop users can vertically scroll to move from one image to another... on phone, it does not scroll at all... 

 

Can I add a little bit of CSS to make it consistent and to have it horizontally scrolling? one by one? like normal carousel of images that are viewed full screen? maybe with arrows on each side?

 

Tap goes to next photo? or horizontal scroll could work too... 

Replies 2 (2)

BSSCommerce-HDL
Shopify Partner
2305 835 911

Hi
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Futurisnow
Excursionist
14 0 5

Of course! I can't believe I did not put the URL...

 

https://www.futurisnowshop.com/products/linea-5-rectangular-geometric-necklace-copy

 

Thanks for your help!