Shopify themes, liquid, logos, and UX
This is what my checkout button currently looks like,
I want to make it so that when i hover on it, it looks like this;
But with a green border, and green text. When hovering i want it to have a smooth transitioning animation from left to right.
Thanks in advance!
Hi @JMecom,
Please provide the link to your store.
Hey @JMecom,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
a.button.button--primary,
.product-form__submit {
background-color: transparent !important;
color: #3BBF37 !important;
border: 3px solid#3BBF37 !important;
}
a.button.button--primary:hover,
.product-form__submit:hover span {
color: white;
}
a.button.button--primary:before,
.product-form__submit:before {
content: '';
border: none;
box-shadow: none !important;
outline: none;
background-color: #3BBF37;
width: 0%;
transition: all 400ms;
}
a.button.button--primary:after {
box-shadow: none !important;
}
a.button.button--primary:hover:before,
.product-form__submit:hover:before{
width: 100%;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hi @JMecom
Do you mean like this?
You have already a transitioning and a animation of heartbeat. do you like to change that one?
This is the code for the hover designs.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.product-form__submit:hover {
background: transparent !important;
color: #3bbf37 !important;
border: 1px solid #3bbf37;
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi there, i've tried this code, it doesn't change it. Yes I want to keep the heartbeat there, in combination with this code.
In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024