0

this is my first post, so, sorry in advance if i'm not explaining propperly.

I have this piece of code for an animated underline with CSS

.underline {
  background-image: linear-gradient(120deg, #005720 0%, #003513 100%);
  background-repeat: no-repeat;
  background-size: 10% 0px;
  background-position: 0 80%;
  transition: background-size 0.25s ease-out;
}

.underline:hover {
  background-size: 100% 3px;
}

<ul class="fs-4 list-group d-flex align-items-end list-group-flush">
<li class="underline bg-transparent  text-light list-group-item"><a class="fw-light text-white" style="text-decoration: none;" href="index_bienvenida">Bienvenida</a></li>
</ul>

I will appreciate any help! thanks

Nissa
  • 1
  • 2

0 Answers0