Text Color Animation
HTML :
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Animation by Growcode</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h3 class="animate-charcter"> ANIMATION</h3>
</div>
</div>
</div>
</body>
</html>
CSS :
.animate-charcter
{
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
background-clip: text;
text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 2s linear infinite;
display: inline-block;
font-size: 190px;
text-transform: uppercase;
background-image: linear-gradient(
-225deg,
#b7ff00 10%,
#00ddff 31%,
#f80000 70%,
#fff800 100%
);
}
@keyframes textclip {
to {
background-position: 200% center;
}
}
Comments
Post a Comment