Re: How to add hover effect on check out button, dawn theme

How to add hover effect on check out button, dawn theme

JMecom
Excursionist
15 0 6

JMecom_0-1705931619342.png

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;

JMecom_1-1705931702644.png

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!

 

Replies 5 (5)

ThePrimeWeb
Shopify Partner
2139 616 506

Hi @JMecom,

Please provide the link to your store.

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
JMecom
Excursionist
15 0 6

www.moxxishop.nl

pw: maycru

ThePrimeWeb
Shopify Partner
2139 616 506

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.

ThePrimeWeb_0-1706289458932.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

Made4uo-Ribe
Shopify Partner
8872 2122 2607

Hi @JMecom 

Do you mean like this? 

Made4uoRibe_0-1705945331432.png

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
JMecom
Excursionist
15 0 6

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.