<!DOCTYPE html>

<html>
    <head>
        <title>Raksha Bandhan CSS Text Animation</title>
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
        <h2 data-text="&nbsp; Raksha Bandhan &nbsp;">&nbsp; Raksha Bandhan &nbsp;</h2>
    </body>
</html>


*
{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
}
body
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #111;
}
h2
{
    position: relative;
    font-size: 7em;
    color: #222;
}
h2::before
{
    content: attr(data-text);
    position: absolute;
    color: rgb(233, 239, 227);
    width: 500px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 5px solid rgb(255, 255, 255);
    animation: animate 9s linear infinite;
    filter: drop-shadow(0 0 20px rgb(255, 0, 0));
}
@keyframes animate
{
    0%,10%,100%
    {
        width: 0;
    }
    70%,90%
    {
        width: 100%;
    }
}