CTA Nav Fade & Grow Animation
What it does
Effect: Underline fades in while expanding on hoverselector li a {
position: relative;
display: inline-block;
}
selector li a:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background: #163CD1;
opacity: 0;
transition: width 0.3s ease, opacity 0.3s ease;
}
selector li:hover a:after {
width: 100%;
opacity: 1;
}