Hue Rotate for Color Animation

<!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>
                                Copy Code
                            

Result Screenshot(s)

Hue Rotate for Color AnimationWorking Sample0