Hello,
I was wondering how I am able to animate the underline when hovering over header titles. This site - https://spraynprayclo.com/collections/best-sellers has what I am talking about and it looks really good! Is this simple to do?
My site: https://qz26pn-cv.myshopify.com/
Password: bagono
Thanks in advance!
1 Like
Hi @GoombaGrows
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
header.header.header--middle-center.header--mobile-center.page-width.header--has-menu.header--has-social.header--has-account {
border-bottom: .1rem solid rgba(18, 18, 18, .08) !important;
margin-bottom: 20px !important;
}
Result
Best
Liz
Hello,
Thank you so much for the quick response! However, I dont think I did a great job at explaining what I was looking for. I will attach a screenshot.

The underline that appears when hovering over their titles are animated. Are you able to help me with this?
Steps to Enable Sticky Header in Dawn:
-
Access the Theme Editor:
- In the Shopify admin, go to “Online Store” > “Themes”.
- Find the Dawn theme and click “Customize”.
-
Navigate to Theme Settings:
- In the theme editor’s left-hand sidebar, click “Theme settings”.
-
Find the Header Settings:
- Within “Theme settings”, look for the “Header” section and click on it.
-
Enable Sticky Header:
- In the “Header” section, you’ll find a checkbox or toggle labeled “Enable sticky header”.
- Check the box or toggle the switch to enable the sticky header.
-
Save Changes:
- Click the “Save” button in the top-right corner of the theme editor.
You can get border and also same as your given link.
Hi @GoombaGrows , Go to base.css and add the following code :
.list-menu__item{
position: relative;
}
.list-menu__item:after {
position: absolute;
left: 0;
bottom: 0;
content: '';
height: 3px;
width: 0;
background-color: black;
transition: width .2s;
}
.list-menu__item:hover::after{
width:100%
}
This will create the desired underline animation when you hover.
1 Like
This worked perfectly! Now I need to figure out how to make the quick link titles bigger to fit it lol. Thank you 
One other question actually, am I able to remove the animation from the sub categories?
Like remove the underline from these? Thank you in advance!
@GoombaGrows , Remove the previous code and add this instead :
.header__menu-item {
position: relative;
}
.header__menu-item::after {
position: absolute;
left: 0;
bottom: 0;
content: '';
height: 3px;
width: 0;
background-color: black;
transition: width .2s;
}
.header__menu-item:hover::after {
width: 100%;
}
.header__submenu .header__menu-item::after {
display: none;
}
1 Like
That worked!! You are amazing! Thank you again 
@GoombaGrows ,
You’re very welcome! If you ever need any help, feel free to reach out anytime.