link_background
by hisbvdis
HTML
<a href="">наведение на ссылку</a>
CSS
a {
background-image: linear-gradient(to right, blue 0%, blue 50%, red 50%, red 100%);
background-repeat: no-repeat;
background-size: 200% 1px;
background-position: 0% 100%;
padding: 2px 0;
transition: 0.5s ease;
}
a:hover {
background-position: 100% 100%;
}
/* ------- Другой неважный код -------- */
body {
line-height: 24px;
font-family: Arial, Helvetica, sans-serif;
color: #585849;
}
a, a:visited {
text-decoration: none;
color: #585849;
}