Shopify themes, liquid, logos, and UX
Hey,
I am currently trying to create smooth transation when I hover with my mouse over an image. At the moment the switch to the second image happens instantly. Does anyone know how to make more smooth?
Example Store:
Solved! Go to the solution
This is an accepted solution.
Hi @drew23,
Thank you for sharing the video, it helps us understand your request. This more on the opacity. Please follow the instructions below
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the base.css
3. Paste the code below at the very bottom of the file.
.card-wrapper:hover .media.media--hover-effect > img + img {
transition: transform 2s ease, opacity 2s ease !important;
}
Hello @drew23 how are you doing?
In short, it depends on the theme you're using, that's why a premium theme is recommended, but the free theme can also be edited to perform the action required but it has to do with some coding language.
Can I visit the website?
If you have any complaints don't hesitate to let us know.
If the suggestion is welcomed don't forget to hit the like button
Thanks.
I am currently using the dawn theme.
This is the example website: https://www.root-atelier.com/
This is an accepted solution.
Hi @drew23,
Thank you for sharing the video, it helps us understand your request. This more on the opacity. Please follow the instructions below
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the base.css
3. Paste the code below at the very bottom of the file.
.card-wrapper:hover .media.media--hover-effect > img + img {
transition: transform 2s ease, opacity 2s ease !important;
}
Hey Made4Uo, thanks for your help. I tried the code sadly it doesnt work for me. If you want to take a look yourself.
brokenmind.com PW: TESTX
Hi @drew23,
That is weird. I don't see the code in the base.css by the way
my bad, i pasted it in the wrong base.css
Hey Made4Uo thanks for your help!
I have one more question. I tweaked the transation effect. But your transation make the image become really bright for a short period of time unlike the version root-atelier.com uses. You can check it out yourself
Hi @drew23,
The website uses this for transition
.card-wrapper:hover .media.media--hover-effect > img + img {
transition: opacity 0.3s ease-out !important;
}
Hey, thanks for finding the exact details. However I feel like my transation doesnt look like his. While the transation happens the Image becomes very bright for a short period of time. The actual transation effect simply blends into the second image.
You have to play with opacity on that then. I am not sure if I am blind but it is hard for me to catch the different
I can't find base.css in my assets folder. How would I get it on my assets folder?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024