How to animate the Color of a Text Link using CSS?
I want to change the color of one menu item or animate text color.
1 thought on “How to animate the Color of a Text Link using CSS?”
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>Animate the Color of a Text Link using CSS</title>
<style>
@keyframes menucolor {
from {background-color: #000000;}
to {background-color: #FFBC25;}
}
.color-change {
}
.color-change a {
animation-name: menucolor;
animation-duration: 30s;
}
</style>
</head>
<body>
<div class=”color-change”><h1><a href=”#”>Text color will be changed…</a></h1></div>
</body>
</html>
1 thought on “How to animate the Color of a Text Link using CSS?”