Shopify themes, liquid, logos, and UX
Hi There,
I am looking for the code to display second image on hover for mobile using the latest version of prestige theme.
Thank you
Hi @DJ1992 Please follow below 2 steps. hope this will help you.
Step:1
step:2
Hi Alok - I am looking for this on MOBILE.
Please follow below steps
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 481px) { .card .media.media--hover-effect > img:only-child, .card-wrapper .media.media--hover-effect > img:only-child { transition: transform var(--duration-long) ease; } .card:hover .media.media--hover-effect > img:first-child:only-child, .card-wrapper:hover .media.media--hover-effect > img:first-child:only-child { transform: scale(1.03); } .card-wrapper:hover .media.media--hover-effect > img:first-child:not(:only-child) { opacity: 0; } .card-wrapper:hover .media.media--hover-effect > img + img { opacity: 1; transition: transform var(--duration-long) ease; transform: scale(1.03); } }
</style>
Hi Alok. Thanks, it works on the customise preview for mobile on Shopify. However when I actually try on a mobile it doesn't change.
I have read up about how mobiles don't actually have a mouse hover capacity?
Hi,
This theme doesn't have this feature but it can be solved if you are interested.
thanks.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024