Mon Oct 24 2022
Hue Rotate for Color Animation
CSS5011 views
![Hue Rotate for Color Animation](/_next/image?url=https%3A%2F%2Fcdn.geekboots.com%2Fgeek%2Fchange-text-color-with-filter-vidImg-1692186322532.webp&w=3840&q=75)
File Name: text-color-animation.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy Diwali</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fasthand&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
font-family: 'Fasthand', cursive;
}
body { background-color: #292929; }
section {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
}
h1 {
font-size: 80px;
color: #00ffea;
font-weight: normal;
text-shadow: 0 0 60px #00ffea,
0 0 60px #00ffea,
0 0 60px #00ffea,
0 0 80px #00ffea,
0 0 100px #00ffea,
0 0 120px #00ffea,
0 0 200px #00ffea,
0 0 300px #00ffea,
0 0 400px #00ffea;
animation: ani 4s linear infinite;
}
@keyframes ani {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<section>
<h1>Happy Diwali</h1>
</section>
</body>
</html>
Result Screenshot(s)
![Hue Rotate for Color AnimationWorking Sample0](/_next/image?url=https%3A%2F%2Fcdn.geekboots.com%2Fgeek%2Ftext-color-animation-screenshot-1666616911839.gif&w=2048&q=75)
Author:Geekboots