How can I achieve a transition effect to move the border-bottom up on hover? Currently, my attempts are not working as expected. Any advice on how to make it work smoothly?
.nav h1 {
display: inline-block;
border-bottom: 2px solid #fff;
padding-bottom: 8px;
margin: 20px;
}
.nav h1 a:hover::after {
padding-bottom: -8px;
transition: 0.5s ease-in;
}