Make Glowing Red Subscribe Gif Using HTML And CSS | Coding With Roannie | OT |
Source Code:
<!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>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            font-family: Arial, Helvetica, sans-serif;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: rgb(53, 53, 71);
        }
        div{
            letter-spacing: 15px;
            font-size: 60px;
            font-weight: bold;
            color: rgb(83, 68, 97);
            position: relative;
            width: 100%;
            text-align: center;
            animation: animate 5s linear infinite;
        }
        @keyframes animate{
            0%,18%,20%,50.1%,60%,65.1%,80%,90.1%,92%{
                color:red;
                text-shadow: none;
            }
            18.1%,20.1%,30%,50%,60.1%,65%,80.1%,90%,92.1%, 100%{
                color: white;
                text-shadow: 0 0 10px red,
                0 0 20px red,
                0 0 40px red,
                0 0 80px red,
                0 0 160px red;
            }
        }
    </style>
</head>
<body>
    <div>SUBSCRIBE</div>
</body>
</html>
