new link hover animation

main
CrimsonTome 2022-09-28 01:43:36 +01:00 committed by Rowan Clark
parent 686f785fb2
commit fc3110f229
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 23 additions and 0 deletions

View File

@ -396,3 +396,26 @@ footer {
text-align: center;
padding: 2em;
}
a {
color: inherit;
text-decoration: none;
}
a {
background: linear-gradient(to right, #64c8c800, rgba(100, 200, 200, 0)),
linear-gradient(
to right,
rgba(255, 0, 0, 1),
rgba(255, 0, 180, 1),
rgba(0, 100, 200, 1)
);
background-size: 100% 3px, 0 3px;
background-position: 100% 100%, 0 100%;
background-repeat: no-repeat;
transition: background-size 400ms;
}
a:hover {
background-size: 0 3px, 100% 3px;
}