Hey everyone, I have added some css to my link buttons to change the underline colour to red on hover (code below). I was wondering if there’s a way to make this colour change ease in on hover from left to right, so the transition feels more smooth I’m not sure if this kind of animation possible without an experts help? Any advice would be appreciated!
Note: Change the class names accordingly for the elements you want to apply this style for. Also, If you need to add this style for a specific section. You can add the css code in he liquid file of that section.
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Hi @Sweans – I think we are nearly there with it, thank you for your help the only thing now is I can see the red line appearing but it does so behind the white line, I think maybe I need to figure out how to remove the white line or make the red appear on top?
The above given css will add an after element for the button which will have the underline with left to right transition and it will not effect the existing style of the “Shop Now” button.
If this doesn’t fix the issue you’re facing, please provide a screenshot so that we can help you.